Subroutine Coverage

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

linesubroutine
12
BEGIN
PCDATA
13
CDATA
16
BEGIN
23
BEGIN
25
BEGIN
27
BEGIN
28
BEGIN
30
BEGIN
31
BEGIN
33
BEGIN
36
BEGIN
37
BEGIN
38
BEGIN
39
BEGIN
40
BEGIN
43
BEGIN
44
BEGIN
47
BEGIN
48
BEGIN
51
BEGIN
61
BEGIN
110
BEGIN
112
BEGIN
118
BEGIN
367
BEGIN
378
new
429
__ANON__
650
parse
667
parsefile
673
_checked_parse_result
687
finish_now
693
parsefile_inplace
694
parsefile_html_inplace
697
_parse_inplace
729
parseurl
734
safe_parseurl
739
safe_parsefile_html
745
safe_parseurl_html
753
safe_parse_html
759
parsefile_html
768
parse_html
777
xparse
806
_parse_as_xml_or_html
820
_is_well_formed_xml
827
nparse
832
nparse_pp
833
nparse_e
834
nparse_ppe
838
_html2xml
859
_fix_xml
903
_xml_parser_encodings
911
_check_xml
918
_encoding_from_meta
934
_to_utf8
953
_indent_xhtml
983
add_stylesheet
999
_disallow_use
1004
_allow_use
1009
_use
1014
BEGIN
1024
_first_n
1037
_slurp_uri
1043
_based_filename
1054
_slurp
1064
_slurp_fh
1078
_parseurl
1098
__ANON__
1118
_pass_url_content
1123
add_options
1128
_pretty_print_styles
1133
_twig_store_internal_dtd
1142
_twig_stop_storing_internal_dtd
1156
_twig_doctype_fin_print
1163
_normalize_args
1172
_is_fh
1175
_set_handler
1196
_set_special_handler
1206
_set_xpath_handler
1216
_add_handler
1238
_set_pi_handler
1254
_set_level_handler
1257
__ANON__
1269
_set_regexp_handler
1273
__ANON__
1285
_parse_xpath_handler
1417
_join_n
1423
_parse_predicate_in_handler
1475
setCharHandler
1481
_reset_handlers
1490
_set_handlers
1499
setTwigHandler
1505
setTwigHandlers
1513
setStartTagHandler
1519
setStartTagHandlers
1527
setIgnoreEltsHandler
1533
setIgnoreEltsHandlers
1541
setEndTagHandler
1547
setEndTagHandlers
1556
setTwigRoots
1572
_check_illegal_twig_roots_handlers
1587
_twig_init
1609
safe_parse
1615
safe_parsefile
1622
_reset_twig
1637
_add_or_discard_stored_spaces
1664
_twig_start
1735
__ANON__
1779
_replace_ns
1832
_ns_info
1845
_a_proper_ns_prefix
1854
_fill_default_atts
1876
_parse_start_tag
1891
set_root
1900
_twig_end
1972
_trigger_tdh
1989
_handler
2022
_replace_prefix
2045
_twig_char
2053
BEGIN
2114
_twig_cdatastart
2158
_twig_cdataend
2188
_pi_elt_handlers
2195
_pi_text_handler
2204
_comment_elt_handler
2210
_comment_text_handler
2223
_twig_comment
2237
_twig_pi
2252
_twig_pi_comment
2314
_add_cpi_outside_of_root
2324
_twig_final
2356
_insert_pcdata
2376
_space_policy
2391
_twig_entity
2443
_twig_extern_ent
2464
_croak
2472
_twig_xmldecl
2483
_twig_doctype
2525
_twig_element
2547
_twig_attlist
2583
_twig_default
2610
_twig_insert_ent
2653
parser
2657
xmldecl
2695
set_doctype
2705
doctype_name
2711
system_id
2717
public_id
2723
internal_subset
2730
dtd
2736
model
2745
entity_list
2751
entity_names
2757
entity
2764
print_prolog
2766
BEGIN
2771
prolog
2780
doctype
2840
_leading_cpi
2846
_trailing_cpi
2852
_trailing_cpi_text
2857
print_to_file
2866
print
2890
flush
2977
flush_up_to
2992
sprint
3026
purge
3062
purge_up_to
3067
root
3070
normalize
3076
create_accessors
3082
BEGIN
3090
__ANON__
3103
first_elt
3110
last_elt
3116
next_n_elt
3122
get_xpath
3133
_unique_elts
3141
findvalue
3151
set_id_seed
3158
index
3165
children
3173
_children
3178
child
3184
descendants
3192
simplify
3193
subs_text
3194
trim
3198
set_keep_encoding
3205
set_expand_external_entities
3208
escape_gt
3211
do_not_escape_gt
3215
elt_id
3219
change_gi
3231
dtd_text
3261
dtd_print
3270
BEGIN
3278
BEGIN
3279
__ANON__
3287
path
3295
finish
3301
finish_print
3318
set_remove_cdata
3320
output_filter
3321
set_output_filter
3323
output_text_filter
3324
set_output_text_filter
3327
set_input_filter
3342
set_empty_tag_style
3345
set_pretty_print
3348
set_quote
3351
set_indent
3354
set_keep_atts_order
3357
keep_atts_order
3360
set_do_not_escape_amp_in_atts
3366
save_global_state
3371
restore_global_state
3376
global_state
3379
set_global_state
3382
dispose
3388
DESTROY
3412
_twig_print_check_doctype
3429
_twig_print
3442
_twig_print_entity
3452
_twig_print_original_check_doctype
3467
_twig_print_original
3476
_twig_print_original_doctype
3496
_twig_print_doctype
3517
_twig_print_original_default
3525
_twig_print_end_original
3532
_twig_start_check_roots
3560
BEGIN
3575
BEGIN
3579
BEGIN
3588
_twig_end_check_roots
3608
BEGIN
3623
_twig_pi_check_roots
3641
BEGIN
3651
_twig_ignore_start
3664
_twig_ignore_end
3705
ignore
3738
_level_in_stack
3750
_set_fh_to_twig_output_fh
3763
_set_fh_to_selected_fh
3773
encoding
3776
set_encoding
3784
output_encoding
3787
set_output_encoding
3797
xml_version
3800
set_xml_version
3806
standalone
3809
set_standalone
3819
toSAX1
3826
toSAX2
3834
_toSAX
3848
flush_toSAX1
3854
flush_toSAX2
3860
_flush_toSAX
3909
_prolog_toSAX
3915
_xmldecl_toSAX
3926
_DTD_toSAX
3946
latin1
3959
_encoding_filter
3975
regexp2latin1
3985
html_encode
3990
safe_encode
4002
safe_encode_hex
4016
_XmlUtf8Decode
4044
unicode_convert
4061
iconv_convert
4082
encode_convert
4090
getRootNode
4091
getParentNode
4092
getChildNodes
4095
_weakrefs
4098
_dump
4113
BEGIN
4116
new
4125
add_new_ent
4132
_add_list
4141
add
4148
ent
4154
delete
4170
print
4183
text
4189
entity_names
4195
list
4204
BEGIN
4207
new
4224
name
4225
val
4226
sysid
4227
pubid
4228
ndata
4229
param
4233
print
4241
sprint
4247
text
4269
_quoted_val
4274
_dump
4281
BEGIN
4283
BEGIN
4285
BEGIN
4286
BEGIN
4287
BEGIN
4288
BEGIN
4289
BEGIN
4291
BEGIN
4293
BEGIN
4294
BEGIN
4295
BEGIN
4297
BEGIN
4298
BEGIN
4299
BEGIN
4300
BEGIN
4301
BEGIN
4302
BEGIN
4304
BEGIN
4310
BEGIN
4383
new
4447
parse
4462
set_inner_xml
4471
set_inner_html
4490
set_gi
4500
gi
4503
local_name
4508
ns_prefix
4514
_ns_prefix
4523
_local_name
4529
BEGIN
4535
namespace
4543
declare_missing_ns
4563
_inherits_declared_prefix
4574
_declares_prefix
4580
set_ns_decl
4586
set_ns_as_default
4598
get_type
4605
is_elt
4613
is_pcdata
4618
is_cdata
4623
is_pi
4628
is_comment
4633
is_ent
4639
is_text
4644
is_empty
4647
set_empty
4650
set_not_empty
4654
set_asis
4668
set_not_asis
4675
is_asis
4678
closed
4686
set_pcdata
4696
_extra_data_in_pcdata
4697
_set_extra_data_in_pcdata
4698
_del_extra_data_in_pcdata
4699
_unshift_extra_data_in_pcdata
4700
_push_extra_data_in_pcdata
4702
_extra_data_before_end_tag
4703
_set_extra_data_before_end_tag
4704
_del_extra_data_before_end_tag
4706
_prefix_extra_data_before_end_tag
4715
_set_pcdata
4719
_try_moving_extra_data
4741
_match_extra_data_words
4749
_match_extra_data_chars
4757
_match_extra_data
4804
_pos_offset
4827
append_pcdata
4832
pcdata
4836
append_extra_data
4841
set_extra_data
4844
extra_data
4847
set_target
4851
target
4854
set_data
4857
data
4860
set_pi
4869
_set_pi
4874
pi_string
4882
set_comment
4890
_set_comment
4891
comment
4892
comment_string
4894
set_ent
4895
ent
4896
ent_name
4899
set_cdata
4909
_set_cdata
4915
append_cdata
4918
cdata
4922
contains_only_text
4930
contains_only
4938
contains_a_single
4947
root
4953
_root_through_cut
4959
twig
4965
_twig_through_cut
4984
reset_cond_cache
4988
_install_cond
5068
_parse_predicate_in_step
5110
_op
5117
passes
5125
set_parent
5130
parent
5137
set_first_child
5142
first_child
5151
_first_child
5152
_last_child
5153
_next_sibling
5154
_prev_sibling
5155
_parent
5156
_next_siblings
5157
_prev_siblings
5162
set_field
5179
set_last_child
5185
last_child
5196
set_prev_sibling
5201
prev_sibling
5210
set_next_sibling
5213
next_sibling
5223
class
5224
set_class
5228
add_to_class
5236
att_to_class
5237
add_att_to_class
5238
move_att_to_class
5241
tag_to_class
5242
add_tag_to_class
5243
set_tag_class
5246
tag_to_span
5252
tag_to_div
5258
in_class
5268
set_atts
5277
atts
5278
att_names
5279
del_atts
5283
set_att
5301
att
5303
del_att
5310
strip_att
5316
change_att_name
5325
lc_attnames
5331
set_twig_current
5332
del_twig_current
5337
set_id
5346
_set_id
5353
id
5357
BEGIN
5361
set_id_seed
5364
add_id
5376
del_id
5392
children
5403
_children
5414
children_copy
5426
children_count
5438
children_text
5445
children_trimmed_text
5452
all_children_are
5460
ancestors
5470
ancestors_or_self
5481
_ancestors
5489
inherit_att
5503
_inherit_att_through_cut
5518
current_ns_prefixes
5540
next_elt
5592
first_descendant
5596
last_descendant
5606
_last_descendant
5617
prev_elt
5641
_following_elt
5648
following_elt
5655
following_elts
5669
_preceding_elt
5676
preceding_elt
5683
preceding_elts
5698
_self
5703
next_n_elt
5712
in
5725
first_child_text
5731
fields
5736
first_child_trimmed_text
5742
first_child_matches
5748
last_child_text
5754
last_child_trimmed_text
5760
last_child_matches
5766
child_text
5772
child_trimmed_text
5778
child_matches
5785
prev_sibling_text
5791
prev_sibling_trimmed_text
5797
prev_sibling_matches
5803
next_sibling_text
5809
next_sibling_trimmed_text
5815
next_sibling_matches
5821
prev_elt_text
5827
prev_elt_trimmed_text
5833
prev_elt_matches
5839
next_elt_text
5845
next_elt_trimmed_text
5851
next_elt_matches
5857
parent_text
5863
parent_trimmed_text
5869
parent_matches
5875
is_first_child
5882
is_last_child
5892
level
5901
in_context
5913
_descendants
5953
descendants
6006
descendants_or_self
6013
sibling
6029
sibling_text
6035
child
6051
prev_siblings
6059
pos
6068
next_siblings
6079
BEGIN
6094
_install_xpath
6225
_croak_and_doublecheck_xpath
6243
get_xpath
6253
findvalue
6259
getElementById
6260
getChildNodes
6262
_flushed
6263
_set_flushed
6264
_del_flushed
6267
cut
6311
former_next_sibling
6312
former_prev_sibling
6313
former_parent
6316
cut_children
6324
erase
6401
_move_extra_data_after_erase
6436
BEGIN
6446
paste
6490
paste_before
6520
paste_after
6551
paste_first_child
6569
paste_last_child
6587
paste_within
6597
simplify
6673
_simplify
6780
_key_attr
6796
_text_with_vars
6809
_normalize_space
6818
att_nb
6823
has_no_atts
6828
_replace_vars_in_text
6842
_store_var
6851
split_at
6866
split
6879
mark
6897
_split
6969
_utf8_ify
6983
subs_text
7040
_is_string
7043
_replace_var
7050
_install_replace_sub
7077
merge_text
7104
merge
7118
copy
7165
delete
7173
DESTROY
7189
ignore
7195
BEGIN
7252
global_state
7270
set_global_state
7288
init_global_state
7312
set_pretty_print
7334
set_empty_tag_style
7350
_pretty_print_styles
7353
set_quote
7361
set_remove_cdata
7369
set_indent
7376
set_wrap
7384
set_keep_encoding
7391
set_replaced_ents
7398
do_not_escape_gt
7404
escape_gt
7409
_keep_encoding
7412
set_do_not_escape_amp_in_atts
7418
output_filter
7419
output_text_filter
7422
set_output_filter
7440
set_output_text_filter
7458
set_expand_external_entities
7465
set_keep_atts_order
7472
keep_atts_order
7475
BEGIN
7478
start_tag
7596
end_tag
7672
_restore_original_prefix
7691
print
7729
flush
7734
purge
7740
_flush
7758
__flush
7796
xml_text
7821
xml_text_only
7829
sprint
7857
_wrap_text
7875
_sprint
7913
xml_string
7918
pcdata_xml_string
7951
BEGIN
7958
_gen_mark
7964
_protect_extra_data
7970
_unprotect_extra_data
7975
cdata_string
7985
att_xml_string
7999
_att_xml_string
8018
ent_string
8033
text
8058
text_only
8061
trimmed_text
8070
trim
8087
remove_cdata
8101
_is_private
8102
_is_private_name
8108
normalize
8122
toSAX1
8125
toSAX2
8128
_toSAX
8173
_start_tag_data_SAX1
8185
_end_tag_data_SAX1
8191
_start_tag_data_SAX2
8212
_atts_to_SAX2
8231
_start_prefix_mapping
8250
_end_prefix_mapping
8258
_end_tag_data_SAX2
8264
contains_text
8278
set_text
8309
set_content
8371
insert
8398
insert_new_elt
8419
wrap_in
8468
replace
8493
replace_with
8504
move
8513
prefix
8536
suffix
8557
path
8563
xpath
8581
_stringify_struct
8592
_wrap_range
8616
wrap_children
8628
_match_expr
8635
_match_tag
8646
field_to_att
8655
att_to_field
8665
sort_children_on_field
8667
__ANON__
8672
sort_children_on_att
8674
__ANON__
8679
sort_children_on_value
8687
sort_children
8714
before
8719
after
8724
lt
8730
le
8736
gt
8742
ge
8749
cmp
8787
_dump
8827
_dump_extra_data
8851
_short_text