Subroutine Coverage

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

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
108
BEGIN
110
BEGIN
116
BEGIN
364
BEGIN
375
new
426
__ANON__
646
parse
663
parsefile
669
_checked_parse_result
683
finish_now
689
parsefile_inplace
690
parsefile_html_inplace
693
_parse_inplace
723
parseurl
728
safe_parseurl
733
safe_parsefile_html
739
safe_parseurl_html
747
safe_parse_html
753
parsefile_html
762
parse_html
771
xparse
800
_parse_as_xml_or_html
814
_is_well_formed_xml
821
nparse
826
nparse_pp
827
nparse_e
828
nparse_ppe
832
_html2xml
853
_fix_xml
897
_xml_parser_encodings
905
_check_xml
912
_encoding_from_meta
928
_to_utf8
947
_indent_xhtml
977
add_stylesheet
993
_disallow_use
998
_allow_use
1003
_use
1008
BEGIN
1018
_first_n
1031
_slurp_uri
1037
_based_filename
1048
_slurp
1058
_slurp_fh
1072
_parseurl
1092
__ANON__
1112
_pass_url_content
1117
add_options
1125
_twig_store_internal_dtd
1133
_twig_stop_storing_internal_dtd
1146
_twig_doctype_fin_print
1152
_normalize_args
1161
_is_fh
1164
_set_handler
1185
_set_special_handler
1195
_set_xpath_handler
1205
_add_handler
1227
_set_pi_handler
1243
_set_level_handler
1246
__ANON__
1258
_set_regexp_handler
1262
__ANON__
1274
_parse_xpath_handler
1406
_join_n
1412
_parse_predicate_in_handler
1464
setCharHandler
1470
_reset_handlers
1479
_set_handlers
1488
setTwigHandler
1494
setTwigHandlers
1502
setStartTagHandler
1508
setStartTagHandlers
1516
setIgnoreEltsHandler
1522
setIgnoreEltsHandlers
1530
setEndTagHandler
1536
setEndTagHandlers
1545
setTwigRoots
1561
_check_illegal_twig_roots_handlers
1575
_twig_init
1596
safe_parse
1602
safe_parsefile
1609
_reset_twig
1624
_add_or_discard_stored_spaces
1650
_twig_start
1721
__ANON__
1764
_replace_ns
1816
_ns_info
1829
_a_proper_ns_prefix
1837
_fill_default_atts
1858
_parse_start_tag
1873
set_root
1882
_twig_end
1953
_trigger_tdh
1969
_handler
2002
_replace_prefix
2024
_twig_char
2032
BEGIN
2092
_twig_cdatastart
2135
_twig_cdataend
2164
_pi_elt_handlers
2171
_pi_text_handler
2180
_comment_elt_handler
2186
_comment_text_handler
2199
_twig_comment
2212
_twig_pi
2226
_twig_pi_comment
2288
_add_cpi_outside_of_root
2298
_twig_final
2330
_insert_pcdata
2350
_space_policy
2365
_twig_entity
2416
_twig_extern_ent
2437
_croak
2445
_twig_xmldecl
2455
_twig_doctype
2497
_twig_element
2518
_twig_attlist
2553
_twig_default
2580
_twig_insert_ent
2623
parser
2627
xmldecl
2665
set_doctype
2675
doctype_name
2681
system_id
2687
public_id
2693
internal_subset
2700
dtd
2706
model
2715
entity_list
2721
entity_names
2727
entity
2734
print_prolog
2736
BEGIN
2741
prolog
2750
doctype
2810
_leading_cpi
2816
_trailing_cpi
2822
_trailing_cpi_text
2827
print_to_file
2835
print
2846
flush
2933
flush_up_to
2948
sprint
2982
purge
3018
purge_up_to
3023
root
3026
normalize
3032
create_accessors
3038
BEGIN
3046
__ANON__
3060
first_elt
3067
last_elt
3073
next_n_elt
3079
get_xpath
3090
_unique_elts
3098
findvalue
3108
set_id_seed
3114
index
3121
children
3129
_children
3134
child
3140
descendants
3148
simplify
3149
subs_text
3150
trim
3155
set_keep_encoding
3162
set_expand_external_entities
3166
elt_id
3170
change_gi
3181
dtd_text
3211
dtd_print
3219
BEGIN
3227
BEGIN
3228
__ANON__
3236
path
3244
finish
3250
finish_print
3266
set_remove_cdata
3268
output_filter
3269
set_output_filter
3271
output_text_filter
3272
set_output_text_filter
3275
set_input_filter
3290
set_empty_tag_style
3293
set_pretty_print
3296
set_quote
3299
set_indent
3302
set_keep_atts_order
3305
keep_atts_order
3308
set_do_not_escape_amp_in_atts
3312
save_global_state
3317
restore_global_state
3322
global_state
3325
set_global_state
3328
dispose
3333
DESTROY
3357
_twig_print_check_doctype
3375
_twig_print
3389
_twig_print_entity
3399
_twig_print_original_check_doctype
3413
_twig_print_original
3421
_twig_print_original_doctype
3440
_twig_print_doctype
3460
_twig_print_original_default
3467
_twig_print_end_original
3473
_twig_start_check_roots
3495
BEGIN
3510
BEGIN
3514
BEGIN
3522
_twig_end_check_roots
3542
BEGIN
3552
_twig_pi_check_roots
3570
BEGIN
3579
_twig_ignore_start
3591
_twig_ignore_end
3631
ignore
3664
_level_in_stack
3676
_set_fh_to_twig_output_fh
3689
_set_fh_to_selected_fh
3699
encoding
3702
set_encoding
3710
output_encoding
3713
set_output_encoding
3719
xml_version
3722
set_xml_version
3728
standalone
3731
set_standalone
3741
toSAX1
3747
toSAX2
3754
_toSAX
3768
flush_toSAX1
3774
flush_toSAX2
3780
_flush_toSAX
3829
_prolog_toSAX
3835
_xmldecl_toSAX
3846
_DTD_toSAX
3866
latin1
3879
_encoding_filter
3895
regexp2latin1
3905
html_encode
3910
safe_encode
3922
safe_encode_hex
3936
_XmlUtf8Decode
3964
unicode_convert
3968
BEGIN
3981
iconv_convert
3983
BEGIN
BEGIN
4002
encode_convert
4010
getRootNode
4011
getParentNode
4012
getChildNodes
4015
_weakrefs
4018
_dump
4033
BEGIN
4036
new
4045
add_new_ent
4052
_add_list
4061
add
4068
ent
4074
delete
4090
print
4103
text
4109
entity_names
4115
list
4124
BEGIN
4127
new
4144
name
4145
val
4146
sysid
4147
pubid
4148
ndata
4149
param
4153
print
4161
sprint
4167
text
4189
_quoted_val
4194
_dump
4201
BEGIN
4203
BEGIN
4205
BEGIN
4206
BEGIN
4207
BEGIN
4208
BEGIN
4209
BEGIN
4211
BEGIN
4213
BEGIN
4214
BEGIN
4215
BEGIN
4217
BEGIN
4218
BEGIN
4219
BEGIN
4220
BEGIN
4221
BEGIN
4222
BEGIN
4224
BEGIN
4230
BEGIN
4303
new
4367
parse
4382
set_inner_xml
4391
set_inner_html
4410
set_gi
4420
gi
4423
local_name
4428
ns_prefix
4434
_ns_prefix
4443
_local_name
4449
BEGIN
4455
namespace
4463
declare_missing_ns
4483
_inherits_declared_prefix
4494
_declares_prefix
4500
set_ns_decl
4506
set_ns_as_default
4523
get_type
4530
is_elt
4536
is_pcdata
4541
is_cdata
4546
is_pi
4551
is_comment
4556
is_ent
4562
is_text
4567
is_empty
4570
set_empty
4573
set_not_empty
4577
set_asis
4591
set_not_asis
4598
is_asis
4601
closed
4609
set_pcdata
4619
_extra_data_in_pcdata
4620
_set_extra_data_in_pcdata
4621
_del_extra_data_in_pcdata
4622
_unshift_extra_data_in_pcdata
4623
_push_extra_data_in_pcdata
4625
_extra_data_before_end_tag
4626
_set_extra_data_before_end_tag
4627
_del_extra_data_before_end_tag
4629
_prefix_extra_data_before_end_tag
4638
_set_pcdata
4642
_try_moving_extra_data
4664
_match_extra_data_words
4672
_match_extra_data_chars
4680
_match_extra_data
4727
_pos_offset
4750
append_pcdata
4755
pcdata
4759
append_extra_data
4764
set_extra_data
4767
extra_data
4770
set_target
4774
target
4777
set_data
4780
data
4783
set_pi
4792
_set_pi
4797
pi_string
4805
set_comment
4813
_set_comment
4814
comment
4815
comment_string
4817
set_ent
4818
ent
4819
ent_name
4822
set_cdata
4832
_set_cdata
4838
append_cdata
4841
cdata
4846
contains_only_text
4854
contains_only
4862
contains_a_single
4871
root
4877
_root_through_cut
4883
twig
4889
_twig_through_cut
4910
reset_cond_cache
4914
_install_cond
4994
_parse_predicate_in_step
5036
_op
5043
passes
5052
set_parent
5058
parent
5066
set_first_child
5072
first_child
5082
_first_child
5083
_last_child
5084
_next_sibling
5085
_prev_sibling
5086
_parent
5087
_next_siblings
5088
_prev_siblings
5093
set_field
5110
set_last_child
5117
last_child
5129
set_prev_sibling
5135
prev_sibling
5145
set_next_sibling
5149
next_sibling
5159
class
5160
set_class
5164
add_to_class
5172
att_to_class
5173
add_att_to_class
5174
move_att_to_class
5177
tag_to_class
5178
add_tag_to_class
5179
set_tag_class
5182
tag_to_span
5188
tag_to_div
5194
in_class
5206
set_atts
5215
atts
5216
att_names
5217
del_atts
5221
set_att
5236
att
5238
del_att
5245
strip_att
5251
change_att_name
5259
set_twig_current
5260
del_twig_current
5265
set_id
5274
_set_id
5281
id
5285
BEGIN
5289
set_id_seed
5292
add_id
5304
del_id
5321
children
5332
_children
5343
children_copy
5355
children_count
5367
children_text
5374
children_trimmed_text
5381
all_children_are
5389
ancestors
5399
ancestors_or_self
5410
_ancestors
5418
inherit_att
5432
_inherit_att_through_cut
5447
current_ns_prefixes
5469
next_elt
5521
first_descendant
5525
last_descendant
5535
_last_descendant
5546
prev_elt
5570
_following_elt
5577
following_elt
5584
following_elts
5598
_preceding_elt
5605
preceding_elt
5612
preceding_elts
5627
_self
5632
next_n_elt
5641
in
5654
first_child_text
5660
fields
5665
first_child_trimmed_text
5671
first_child_matches
5677
last_child_text
5683
last_child_trimmed_text
5689
last_child_matches
5695
child_text
5701
child_trimmed_text
5707
child_matches
5714
prev_sibling_text
5720
prev_sibling_trimmed_text
5726
prev_sibling_matches
5732
next_sibling_text
5738
next_sibling_trimmed_text
5744
next_sibling_matches
5750
prev_elt_text
5756
prev_elt_trimmed_text
5762
prev_elt_matches
5768
next_elt_text
5774
next_elt_trimmed_text
5780
next_elt_matches
5786
parent_text
5792
parent_trimmed_text
5798
parent_matches
5804
is_first_child
5811
is_last_child
5821
level
5830
in_context
5842
_descendants
5882
descendants
5935
descendants_or_self
5942
sibling
5958
sibling_text
5964
child
5980
prev_siblings
5988
pos
5997
next_siblings
6008
BEGIN
6023
_install_xpath
6160
get_xpath
6170
findvalue
6178
getElementById
6179
getChildNodes
6181
_flushed
6182
_set_flushed
6183
_del_flushed
6186
cut
6231
former_next_sibling
6232
former_prev_sibling
6233
former_parent
6236
cut_children
6244
erase
6321
_move_extra_data_after_erase
6356
BEGIN
6366
paste
6410
paste_before
6440
paste_after
6471
paste_first_child
6489
paste_last_child
6507
paste_within
6517
simplify
6593
_simplify
6700
_key_attr
6716
_text_with_vars
6729
_normalize_space
6738
att_nb
6743
has_no_atts
6748
_replace_vars_in_text
6762
_store_var
6771
split_at
6786
split
6799
mark
6817
_split
6889
_utf8_ify
6903
subs_text
6960
_is_string
6963
_replace_var
6970
_install_replace_sub
6997
merge_text
7024
merge
7038
copy
7083
delete
7091
DESTROY
7107
ignore
7113
BEGIN
7167
global_state
7184
set_global_state
7201
init_global_state
7224
set_pretty_print
7248
set_empty_tag_style
7264
set_quote
7272
set_remove_cdata
7280
set_indent
7287
set_wrap
7295
set_keep_encoding
7301
_keep_encoding
7304
set_do_not_escape_amp_in_atts
7310
output_filter
7311
output_text_filter
7314
set_output_filter
7332
set_output_text_filter
7350
set_expand_external_entities
7357
set_keep_atts_order
7364
keep_atts_order
7367
BEGIN
7370
start_tag
7487
end_tag
7563
_restore_original_prefix
7579
print
7601
flush
7606
purge
7612
_flush
7630
__flush
7668
xml_text
7693
xml_text_only
7700
sprint
7725
_wrap_text
7743
_sprint
7782
xml_string
7787
pcdata_xml_string
7818
BEGIN
7825
_gen_mark
7831
_protect_extra_data
7837
_unprotect_extra_data
7842
cdata_string
7852
att_xml_string
7863
_att_xml_string
7881
ent_string
7896
text
7921
text_only
7924
trimmed_text
7933
trim
7950
remove_cdata
7964
_is_private
7965
_is_private_name
7971
normalize
7985
toSAX1
7988
toSAX2
7991
_toSAX
8036
_start_tag_data_SAX1
8048
_end_tag_data_SAX1
8054
_start_tag_data_SAX2
8075
_atts_to_SAX2
8094
_start_prefix_mapping
8113
_end_prefix_mapping
8121
_end_tag_data_SAX2
8130
contains_text
8146
set_text
8177
set_content
8239
insert
8266
insert_new_elt
8287
wrap_in
8336
replace
8358
replace_with
8370
move
8380
prefix
8403
suffix
8425
path
8431
xpath
8449
_stringify_struct
8460
_wrap_range
8484
wrap_children
8496
_match_expr
8503
_match_tag
8514
field_to_att
8523
att_to_field
8533
sort_children_on_field
8535
__ANON__
8540
sort_children_on_att
8542
__ANON__
8547
sort_children_on_value
8555
sort_children
8582
before
8587
after
8592
lt
8598
le
8604
gt
8610
ge
8617
cmp
8655
_dump
8695
_dump_extra_data
8719
_short_text