XML, the Perl Way

Subroutine Coverage

File: blib/lib/XML/Twig.pm
Coverage: 100.0%

line subroutine
1
BEGIN
2
BEGIN
7
BEGIN
PCDATA
8
CDATA
11
BEGIN
25
BEGIN
27
BEGIN
29
BEGIN
30
BEGIN
31
BEGIN
36
BEGIN
147
BEGIN
149
BEGIN
157
BEGIN
435
BEGIN
446
new
501
__ANON__
749
parse
772
parsefile
779
_checked_parse_result
794
active_twig
797
finish_now
803
parsefile_inplace
804
parsefile_html_inplace
807
_parse_inplace
842
parseurl
847
safe_parseurl
852
safe_parsefile_html
858
safe_parseurl_html
865
parseurl_html
873
safe_parse_html
879
parsefile_html
890
parse_html
903
xparse
933
_parse_as_xml_or_html
949
_is_well_formed_xml
956
nparse
961
nparse_pp
962
nparse_e
963
nparse_ppe
967
_html2xml
1009
_tidy_html
1037
_fix_xml
1105
_xml_parser_encodings
1114
_unescape_cdata
1124
_as_XML
1131
__ANON__
1171
_xml_escape
1199
_check_xml
1206
_encoding_from_meta
1222
_to_utf8
1241
_indent_xhtml
1275
add_stylesheet
1291
_disallow_use
1296
_allow_use
1301
_use
1309
BEGIN
1323
_first_n
1336
_slurp_uri
1342
_based_filename
1353
_slurp
1363
_slurp_fh
1377
_parseurl
1397
__ANON__
1418
_pass_url_content
1423
add_options
1428
_pretty_print_styles
1433
_twig_store_internal_dtd
1442
_twig_stop_storing_internal_dtd
1456
_twig_doctype_fin_print
1463
_normalize_args
1472
_is_fh
1475
_set_handler
1511
_set_special_handler
1521
_set_xpath_handler
1531
_add_handler
1554
_set_pi_handler
1570
_set_level_handler
1573
__ANON__
1585
_set_regexp_handler
1589
__ANON__
1602
_set_debug_handler
1603
_warn_debug_handler
1604
_return_debug_handler
1607
_parse_xpath_handler
1732
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
1741
_join_n
1745
_tag_cond
1766
_parse_predicate_in_handler
1823
setCharHandler
1829
_reset_handlers
1838
_set_handlers
1848
setTwigHandler
1854
setTwigHandlers
1862
setStartTagHandler
1868
setStartTagHandlers
1876
setIgnoreEltsHandler
1882
setIgnoreEltsHandlers
1890
setEndTagHandler
1896
setEndTagHandlers
1905
setTwigRoots
1921
_check_illegal_twig_roots_handlers
1936
_twig_init
1958
safe_parse
1964
safe_parsefile
1971
_reset_twig
1986
_reset_twig_after_error
1993
_add_or_discard_stored_spaces
2019
_twig_start
2093
__ANON__
2138
_replace_ns
2193
_ns_info
2206
_a_proper_ns_prefix
2218
original_uri
2227
_fill_default_atts
2249
_parse_start_tag
2264
set_root
2275
_twig_end
2359
_trigger_tdh
2376
_handler
2402
_replace_prefix
2425
_twig_char
2433
BEGIN
2494
_twig_cdatastart
2538
_twig_cdataend
2568
_pi_elt_handlers
2575
_pi_text_handler
2584
_comment_elt_handler
2590
_comment_text_handler
2603
_twig_comment
2617
_twig_pi
2632
_twig_pi_comment
2694
_add_cpi_outside_of_root
2704
_twig_final
2739
_insert_pcdata
2765
_space_policy
2779
_twig_entity
2831
_twig_extern_ent
2852
_croak
2860
_twig_xmldecl
2871
_twig_doctype
2913
_twig_element
2935
_twig_attlist
2971
_twig_default
3004
_twig_insert_ent
3047
parser
3051
xmldecl
3089
set_doctype
3099
doctype_name
3105
system_id
3111
public_id
3117
internal_subset
3124
dtd
3130
model
3139
entity_list
3145
entity_names
3151
entity
3158
print_prolog
3161
BEGIN
3166
prolog
3175
doctype
3195
BEGIN
3235
_leading_cpi
3241
_trailing_cpi
3247
_trailing_cpi_text
3252
print_to_file
3266
safe_print_to_file
3279
print
3311
flush
3405
flush_up_to
3420
sprint
3455
purge
3494
purge_up_to
3499
root
3502
normalize
3509
att_accessors
3514
BEGIN
3523
__ANON__
3537
elt_accessors
3546
BEGIN
3554
__ANON__
3567
field_accessors
3575
BEGIN
3582
__ANON__
3593
first_elt
3600
last_elt
3606
next_n_elt
3612
get_xpath
3623
_unique_elts
3631
findvalue
3641
findvalues
3651
set_id_seed
3658
index
3665
children
3673
_children
3678
child
3684
descendants
3692
simplify
3693
subs_text
3694
trim
3698
set_keep_encoding
3705
set_expand_external_entities
3708
escape_gt
3711
do_not_escape_gt
3714
elt_id
3718
change_gi
3730
dtd_text
3760
dtd_print
3769
BEGIN
3779
BEGIN
3780
__ANON__
3788
path
3796
finish
3802
finish_print
3819
set_remove_cdata
3821
output_filter
3822
set_output_filter
3824
output_text_filter
3825
set_output_text_filter
3828
set_input_filter
3843
set_empty_tag_style
3846
set_pretty_print
3849
set_quote
3852
set_indent
3855
set_keep_atts_order
3858
keep_atts_order
3861
set_do_not_escape_amp_in_atts
3867
save_global_state
3872
restore_global_state
3877
global_state
3880
set_global_state
3883
dispose
3889
DESTROY
3913
_twig_print_check_doctype
3930
_twig_print
3947
_twig_print_entity
3957
_twig_print_original_check_doctype
3972
_twig_print_original
3981
_twig_print_original_doctype
4001
_twig_print_doctype
4022
_twig_print_original_default
4030
_twig_print_end_original
4037
_twig_start_check_roots
4070
BEGIN
4086
BEGIN
4092
BEGIN
4101
_twig_end_check_roots
4122
BEGIN
4137
_twig_pi_check_roots
4157
BEGIN
4165
_output_ignored
4189
_twig_ignore_start
4201
_twig_ignore_end
4238
ignore
4269
__ANON__
4279
__ANON__
4289
_level_in_stack
4301
_set_fh_to_twig_output_fh
4314
_set_fh_to_selected_fh
4324
encoding
4327
set_encoding
4335
output_encoding
4338
set_output_encoding
4349
xml_version
4352
set_xml_version
4359
standalone
4362
set_standalone
4373
toSAX1
4380
toSAX2
4388
_toSAX
4402
flush_toSAX1
4408
flush_toSAX2
4414
_flush_toSAX
4463
_prolog_toSAX
4469
_xmldecl_toSAX
4480
_DTD_toSAX
4500
latin1
4513
_encoding_filter
4529
regexp2latin1
4539
html_encode
4544
safe_encode
4547
BEGIN
4557
safe_encode_hex
4560
BEGIN
4572
_XmlUtf8Decode
4600
unicode_convert
4604
BEGIN
BEGIN
4617
iconv_convert
4619
BEGIN
BEGIN
BEGIN
BEGIN
4638
encode_convert
4639
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
4646
getRootNode
4647
getParentNode
4648
getChildNodes
4650
_weakrefs
4651
_set_weakrefs
4654
_dump
4674
new
4683
add_new_ent
4690
_add_list
4699
add
4706
ent
4712
delete
4728
print
4741
text
4747
entity_names
4753
list
4766
new
4783
name
4784
val
4785
sysid
4786
pubid
4787
ndata
4788
param
4792
print
4799
sprint
4804
text
4826
_quoted_val
4831
_dump
4839
BEGIN
4854
BEGIN
4928
new
4990
_new_pcdata
5005
parse
5022
set_inner_xml
5031
set_outer_xml
5041
set_inner_html
5060
set_gi
5070
gi
5073
local_name
5078
ns_prefix
5084
_ns_prefix
5093
_local_name
5100
namespace
5108
declare_missing_ns
5121
_current_ns_prefix_map
5137
set_ns_decl
5144
set_ns_as_default
5168
get_type
5175
is_elt
5183
is_pcdata
5188
is_cdata
5193
is_pi
5198
is_comment
5203
is_ent
5209
is_text
5214
is_empty
5217
set_empty
5220
set_not_empty
5224
set_asis
5238
set_not_asis
5245
is_asis
5248
closed
5256
set_pcdata
5265
_extra_data_in_pcdata
5266
_set_extra_data_in_pcdata
5267
_del_extra_data_in_pcdata
5269
_unshift_extra_data_in_pcdata
5274
_push_extra_data_in_pcdata
5279
_extra_data_before_end_tag
5280
_set_extra_data_before_end_tag
5281
_del_extra_data_before_end_tag
5283
_prefix_extra_data_before_end_tag
5292
_set_pcdata
5296
_try_moving_extra_data
5318
_match_extra_data_words
5326
_match_extra_data_chars
5334
_match_extra_data
5381
_pos_offset
5404
append_pcdata
5408
pcdata
5412
append_extra_data
5417
set_extra_data
5420
extra_data
5423
set_target
5427
target
5430
set_data
5433
data
5436
set_pi
5445
_set_pi
5450
pi_string
5458
set_comment
5466
_set_comment
5467
comment
5468
comment_string
5471
_comment_escaped_string
5478
set_ent
5479
ent
5480
ent_name
5483
set_cdata
5493
_set_cdata
5498
append_cdata
5501
cdata
5505
contains_only_text
5513
contains_only
5521
contains_a_single
5530
root
5536
_root_through_cut
5542
twig
5548
_twig_through_cut
5568
reset_cond_cache
5572
_install_cond
5589
BEGIN
5626
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
5634
_gi_test
5678
_parse_predicate_in_step
5720
_op
5727
passes
5735
set_parent
5740
parent
5747
set_first_child
5751
first_child
5760
_first_child
5761
_last_child
5762
_next_sibling
5763
_prev_sibling
5764
_parent
5765
_next_siblings
5766
_prev_siblings
5771
set_field
5788
set_last_child
5793
last_child
5804
set_prev_sibling
5809
prev_sibling
5818
set_next_sibling
5821
next_sibling
5831
class
5835
lclass
5837
set_class
5841
add_to_class
5850
remove_class
5858
att_to_class
5859
add_att_to_class
5860
move_att_to_class
5863
tag_to_class
5864
add_tag_to_class
5865
set_tag_class
5868
tag_to_span
5874
tag_to_div
5880
in_class
5890
set_atts
5899
atts
5900
att_names
5901
del_atts
5905
set_att
5923
att
5927
latt
5930
del_att
5935
att_exists
5939
strip_att
5945
change_att_name
5954
lc_attnames
5960
set_twig_current
5961
del_twig_current
5966
set_id
5975
_set_id
5982
id
5986
BEGIN
5990
set_id_seed
5993
add_id
6008
del_id
6023
children
6034
_children
6045
children_copy
6057
children_count
6069
children_text
6076
children_trimmed_text
6083
all_children_are
6091
ancestors
6101
ancestors_or_self
6112
_ancestors
6120
inherit_att
6134
_inherit_att_through_cut
6149
current_ns_prefixes
6171
next_elt
6223
first_descendant
6227
last_descendant
6237
_last_descendant
6248
prev_elt
6272
_following_elt
6279
following_elt
6286
following_elts
6300
_preceding_elt
6307
preceding_elt
6314
preceding_elts
6329
_self
6334
next_n_elt
6343
in
6356
first_child_text
6362
fields
6367
first_child_trimmed_text
6373
first_child_matches
6379
last_child_text
6385
last_child_trimmed_text
6391
last_child_matches
6397
child_text
6403
child_trimmed_text
6409
child_matches
6416
prev_sibling_text
6422
prev_sibling_trimmed_text
6428
prev_sibling_matches
6434
next_sibling_text
6440
next_sibling_trimmed_text
6446
next_sibling_matches
6452
prev_elt_text
6458
prev_elt_trimmed_text
6464
prev_elt_matches
6470
next_elt_text
6476
next_elt_trimmed_text
6482
next_elt_matches
6488
parent_text
6494
parent_trimmed_text
6500
parent_matches
6506
is_first_child
6513
is_last_child
6523
level
6532
in_context
6544
_descendants
6584
descendants
6637
descendants_or_self
6644
sibling
6660
sibling_text
6666
child
6682
prev_siblings
6690
siblings
6695
pos
6704
next_siblings
6715
BEGIN
6730
_install_xpath
6867
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
6875
_croak_and_doublecheck_xpath
6893
get_xpath
6903
findvalues
6908
findvalue
6914
getElementById
6915
getChildNodes
6917
_flushed
6918
_set_flushed
6919
_del_flushed
6922
cut
6981
former_next_sibling
6982
former_prev_sibling
6983
former_parent
6986
cut_children
6994
cut_descendants
7004
erase
7081
_move_extra_data_after_erase
7116
BEGIN
7126
paste
7173
paste_before
7203
paste_after
7234
paste_first_child
7251
paste_last_child
7268
paste_within
7278
simplify
7354
_simplify
7461
_key_attr
7477
_text_with_vars
7490
_normalize_space
7499
att_nb
7504
has_no_atts
7509
_replace_vars_in_text
7523
_store_var
7532
split_at
7547
split
7560
mark
7579
_split
7653
_repl_match
7662
_utf8_ify
7674
subs_text
7690
BEGIN
7720
_is_string
7723
_replace_var
7730
_install_replace_sub
7748
BEGIN
BEGIN
BEGIN
BEGIN
7757
merge_text
7776
merge
7809
copy
7857
delete
7864
__destroy
7879
set_destroy
7880
BEGIN
7885
ignore
7891
BEGIN
7951
global_state
7969
set_global_state
7987
init_global_state
8011
set_pretty_print
8026
_pretty_print
8034
set_empty_tag_style
8050
_pretty_print_styles
8053
set_quote
8061
set_remove_cdata
8069
set_indent
8076
set_wrap
8084
set_keep_encoding
8091
set_replaced_ents
8098
do_not_escape_gt
8104
escape_gt
8109
_keep_encoding
8112
set_do_not_escape_amp_in_atts
8118
output_filter
8119
output_text_filter
8122
set_output_filter
8140
set_output_text_filter
8158
set_expand_external_entities
8165
set_keep_atts_order
8172
keep_atts_order
8175
BEGIN
8178
start_tag
8300
end_tag
8376
_restore_original_prefix
8395
print
8406
print_to_file
8420
safe_print_to_file
8436
flush
8441
purge
8447
_flush
8465
__flush
8503
xml_text
8528
xml_text_only
8536
sprint
8564
_wrap_text
8582
_sprint
8620
xml_string
8625
pcdata_xml_string
8658
BEGIN
8665
_gen_mark
8671
_protect_extra_data
8677
_unprotect_extra_data
8682
cdata_string
8692
att_xml_string
8706
_att_xml_string
8728
ent_string
8743
text
8768
text_only
8771
trimmed_text
8780
trim
8797
remove_cdata
8811
_is_private
8812
_is_private_name
8819
normalize
8833
toSAX1
8836
toSAX2
8839
_toSAX
8884
_start_tag_data_SAX1
8896
_end_tag_data_SAX1
8902
_start_tag_data_SAX2
8923
_atts_to_SAX2
8942
_start_prefix_mapping
8961
_end_prefix_mapping
8969
_end_tag_data_SAX2
8975
contains_text
8989
set_text
9021
set_content
9082
insert
9109
insert_new_elt
9130
wrap_in
9180
replace
9208
replace_with
9219
move
9228
prefix
9252
suffix
9274
path
9280
xpath
9298
_stringify_struct
9309
_wrap_range
9333
wrap_children
9339
BEGIN
9345
_match_expr
9352
_match_tag
9363
field_to_att
9372
att_to_field
9382
sort_children_on_field
9384
__ANON__
9389
sort_children_on_att
9391
__ANON__
9396
sort_children_on_value
9403
sort_children
9430
before
9435
after
9440
lt
9446
le
9452
gt
9458
ge
9465
cmp
9503
_dump
9543
_dump_extra_data
9567
_short_text
9575
_and
9576
_join_defined