XML, the Perl Way

Home XML::Twig Modules Talks Articles Tutorials Reports Tools PGC mirod Le Blog print

Subroutine Coverage

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

line subroutine
12
BEGIN
PCDATA
13
CDATA
16
BEGIN
18
BEGIN
19
BEGIN
27
BEGIN
29
BEGIN
30
BEGIN
32
BEGIN
33
BEGIN
35
BEGIN
38
BEGIN
39
BEGIN
40
BEGIN
41
BEGIN
42
BEGIN
45
BEGIN
46
BEGIN
49
BEGIN
50
BEGIN
53
BEGIN
63
BEGIN
114
BEGIN
116
BEGIN
122
BEGIN
371
BEGIN
382
new
433
__ANON__
658
parse
675
parsefile
681
_checked_parse_result
695
finish_now
701
parsefile_inplace
702
parsefile_html_inplace
705
_parse_inplace
740
parseurl
745
safe_parseurl
750
safe_parsefile_html
756
safe_parseurl_html
764
safe_parse_html
770
parsefile_html
779
parse_html
788
xparse
817
_parse_as_xml_or_html
831
_is_well_formed_xml
838
nparse
843
nparse_pp
844
nparse_e
845
nparse_ppe
849
_html2xml
871
_fix_xml
915
_xml_parser_encodings
923
_check_xml
930
_encoding_from_meta
946
_to_utf8
965
_indent_xhtml
995
add_stylesheet
1011
_disallow_use
1016
_allow_use
1021
_use
1026
BEGIN
1036
_first_n
1049
_slurp_uri
1055
_based_filename
1066
_slurp
1076
_slurp_fh
1090
_parseurl
1110
__ANON__
1130
_pass_url_content
1135
add_options
1140
_pretty_print_styles
1145
_twig_store_internal_dtd
1154
_twig_stop_storing_internal_dtd
1168
_twig_doctype_fin_print
1175
_normalize_args
1184
_is_fh
1187
_set_handler
1208
_set_special_handler
1218
_set_xpath_handler
1228
_add_handler
1250
_set_pi_handler
1266
_set_level_handler
1269
__ANON__
1281
_set_regexp_handler
1285
__ANON__
1297
_parse_xpath_handler
1420
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
BEGIN
BEGIN
BEGIN
1429
_join_n
1435
_parse_predicate_in_handler
1487
setCharHandler
1493
_reset_handlers
1502
_set_handlers
1511
setTwigHandler
1517
setTwigHandlers
1525
setStartTagHandler
1531
setStartTagHandlers
1539
setIgnoreEltsHandler
1545
setIgnoreEltsHandlers
1553
setEndTagHandler
1559
setEndTagHandlers
1568
setTwigRoots
1584
_check_illegal_twig_roots_handlers
1599
_twig_init
1621
safe_parse
1627
safe_parsefile
1634
_reset_twig
1649
_add_or_discard_stored_spaces
1676
_twig_start
1747
__ANON__
1791
_replace_ns
1844
_ns_info
1857
_a_proper_ns_prefix
1866
_fill_default_atts
1888
_parse_start_tag
1903
set_root
1912
_twig_end
1988
_trigger_tdh
2005
_handler
2031
_replace_prefix
2054
_twig_char
2062
BEGIN
2122
_twig_cdatastart
2166
_twig_cdataend
2196
_pi_elt_handlers
2203
_pi_text_handler
2212
_comment_elt_handler
2218
_comment_text_handler
2231
_twig_comment
2245
_twig_pi
2260
_twig_pi_comment
2322
_add_cpi_outside_of_root
2332
_twig_final
2367
_insert_pcdata
2387
_space_policy
2402
_twig_entity
2454
_twig_extern_ent
2475
_croak
2483
_twig_xmldecl
2494
_twig_doctype
2536
_twig_element
2558
_twig_attlist
2594
_twig_default
2628
_twig_insert_ent
2671
parser
2675
xmldecl
2713
set_doctype
2723
doctype_name
2729
system_id
2735
public_id
2741
internal_subset
2748
dtd
2754
model
2763
entity_list
2769
entity_names
2775
entity
2782
print_prolog
2784
BEGIN
2789
prolog
2798
doctype
2858
_leading_cpi
2864
_trailing_cpi
2870
_trailing_cpi_text
2875
print_to_file
2887
print
2912
flush
3002
flush_up_to
3017
sprint
3052
purge
3091
purge_up_to
3096
root
3099
normalize
3105
create_accessors
3111
BEGIN
3119
__ANON__
3132
first_elt
3139
last_elt
3145
next_n_elt
3151
get_xpath
3162
_unique_elts
3170
findvalue
3180
set_id_seed
3187
index
3194
children
3202
_children
3207
child
3213
descendants
3221
simplify
3222
subs_text
3223
trim
3227
set_keep_encoding
3234
set_expand_external_entities
3237
escape_gt
3240
do_not_escape_gt
3244
elt_id
3248
change_gi
3260
dtd_text
3290
dtd_print
3299
BEGIN
3307
BEGIN
3308
__ANON__
3316
path
3324
finish
3330
finish_print
3347
set_remove_cdata
3349
output_filter
3350
set_output_filter
3352
output_text_filter
3353
set_output_text_filter
3356
set_input_filter
3371
set_empty_tag_style
3374
set_pretty_print
3377
set_quote
3380
set_indent
3383
set_keep_atts_order
3386
keep_atts_order
3389
set_do_not_escape_amp_in_atts
3395
save_global_state
3400
restore_global_state
3405
global_state
3408
set_global_state
3411
dispose
3417
DESTROY
3441
_twig_print_check_doctype
3458
_twig_print
3471
_twig_print_entity
3481
_twig_print_original_check_doctype
3496
_twig_print_original
3505
_twig_print_original_doctype
3525
_twig_print_doctype
3546
_twig_print_original_default
3554
_twig_print_end_original
3561
_twig_start_check_roots
3589
BEGIN
3604
BEGIN
3608
BEGIN
3617
_twig_end_check_roots
3637
BEGIN
3652
_twig_pi_check_roots
3670
BEGIN
3680
_twig_ignore_start
3693
_twig_ignore_end
3734
ignore
3767
_level_in_stack
3779
_set_fh_to_twig_output_fh
3792
_set_fh_to_selected_fh
3802
encoding
3805
set_encoding
3813
output_encoding
3816
set_output_encoding
3827
xml_version
3830
set_xml_version
3837
standalone
3840
set_standalone
3851
toSAX1
3858
toSAX2
3866
_toSAX
3880
flush_toSAX1
3886
flush_toSAX2
3892
_flush_toSAX
3941
_prolog_toSAX
3947
_xmldecl_toSAX
3958
_DTD_toSAX
3978
latin1
3991
_encoding_filter
4007
regexp2latin1
4017
html_encode
4022
safe_encode
4034
safe_encode_hex
4048
_XmlUtf8Decode
4076
unicode_convert
4080
BEGIN
BEGIN
4093
iconv_convert
4095
BEGIN
BEGIN
BEGIN
BEGIN
4114
encode_convert
4115
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
4122
getRootNode
4123
getParentNode
4124
getChildNodes
4127
_weakrefs
4130
_dump
4146
BEGIN
4149
new
4158
add_new_ent
4165
_add_list
4174
add
4181
ent
4187
delete
4203
print
4216
text
4222
entity_names
4228
list
4237
BEGIN
4240
new
4257
name
4258
val
4259
sysid
4260
pubid
4261
ndata
4262
param
4266
print
4274
sprint
4280
text
4302
_quoted_val
4307
_dump
4314
BEGIN
4316
BEGIN
4318
BEGIN
4319
BEGIN
4320
BEGIN
4321
BEGIN
4322
BEGIN
4324
BEGIN
4326
BEGIN
4327
BEGIN
4328
BEGIN
4330
BEGIN
4331
BEGIN
4332
BEGIN
4333
BEGIN
4334
BEGIN
4335
BEGIN
4337
BEGIN
4343
BEGIN
4416
new
4480
parse
4495
set_inner_xml
4504
set_inner_html
4523
set_gi
4533
gi
4536
local_name
4541
ns_prefix
4547
_ns_prefix
4556
_local_name
4562
BEGIN
4568
namespace
4576
declare_missing_ns
4591
_current_ns_prefix_map
4607
set_ns_decl
4614
set_ns_as_default
4638
get_type
4645
is_elt
4653
is_pcdata
4658
is_cdata
4663
is_pi
4668
is_comment
4673
is_ent
4679
is_text
4684
is_empty
4687
set_empty
4690
set_not_empty
4694
set_asis
4708
set_not_asis
4715
is_asis
4718
closed
4726
set_pcdata
4736
_extra_data_in_pcdata
4737
_set_extra_data_in_pcdata
4738
_del_extra_data_in_pcdata
4739
_unshift_extra_data_in_pcdata
4740
_push_extra_data_in_pcdata
4742
_extra_data_before_end_tag
4743
_set_extra_data_before_end_tag
4744
_del_extra_data_before_end_tag
4746
_prefix_extra_data_before_end_tag
4755
_set_pcdata
4759
_try_moving_extra_data
4781
_match_extra_data_words
4789
_match_extra_data_chars
4797
_match_extra_data
4844
_pos_offset
4867
append_pcdata
4872
pcdata
4876
append_extra_data
4881
set_extra_data
4884
extra_data
4887
set_target
4891
target
4894
set_data
4897
data
4900
set_pi
4909
_set_pi
4914
pi_string
4922
set_comment
4930
_set_comment
4931
comment
4932
comment_string
4934
set_ent
4935
ent
4936
ent_name
4939
set_cdata
4949
_set_cdata
4955
append_cdata
4958
cdata
4962
contains_only_text
4970
contains_only
4978
contains_a_single
4987
root
4993
_root_through_cut
4999
twig
5005
_twig_through_cut
5024
reset_cond_cache
5028
_install_cond
5099
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
5108
_parse_predicate_in_step
5150
_op
5157
passes
5165
set_parent
5170
parent
5177
set_first_child
5182
first_child
5191
_first_child
5192
_last_child
5193
_next_sibling
5194
_prev_sibling
5195
_parent
5196
_next_siblings
5197
_prev_siblings
5202
set_field
5219
set_last_child
5225
last_child
5236
set_prev_sibling
5241
prev_sibling
5250
set_next_sibling
5253
next_sibling
5263
class
5264
set_class
5268
add_to_class
5276
att_to_class
5277
add_att_to_class
5278
move_att_to_class
5281
tag_to_class
5282
add_tag_to_class
5283
set_tag_class
5286
tag_to_span
5292
tag_to_div
5298
in_class
5308
set_atts
5317
atts
5318
att_names
5319
del_atts
5323
set_att
5341
att
5343
del_att
5348
att_exists
5352
strip_att
5358
change_att_name
5367
lc_attnames
5373
set_twig_current
5374
del_twig_current
5379
set_id
5388
_set_id
5395
id
5399
BEGIN
5403
set_id_seed
5406
add_id
5418
del_id
5434
children
5445
_children
5456
children_copy
5468
children_count
5480
children_text
5487
children_trimmed_text
5494
all_children_are
5502
ancestors
5512
ancestors_or_self
5523
_ancestors
5531
inherit_att
5545
_inherit_att_through_cut
5560
current_ns_prefixes
5582
next_elt
5634
first_descendant
5638
last_descendant
5648
_last_descendant
5659
prev_elt
5683
_following_elt
5690
following_elt
5697
following_elts
5711
_preceding_elt
5718
preceding_elt
5725
preceding_elts
5740
_self
5745
next_n_elt
5754
in
5767
first_child_text
5773
fields
5778
first_child_trimmed_text
5784
first_child_matches
5790
last_child_text
5796
last_child_trimmed_text
5802
last_child_matches
5808
child_text
5814
child_trimmed_text
5820
child_matches
5827
prev_sibling_text
5833
prev_sibling_trimmed_text
5839
prev_sibling_matches
5845
next_sibling_text
5851
next_sibling_trimmed_text
5857
next_sibling_matches
5863
prev_elt_text
5869
prev_elt_trimmed_text
5875
prev_elt_matches
5881
next_elt_text
5887
next_elt_trimmed_text
5893
next_elt_matches
5899
parent_text
5905
parent_trimmed_text
5911
parent_matches
5917
is_first_child
5924
is_last_child
5934
level
5943
in_context
5955
_descendants
5995
descendants
6048
descendants_or_self
6055
sibling
6071
sibling_text
6077
child
6093
prev_siblings
6101
pos
6110
next_siblings
6121
BEGIN
6136
_install_xpath
6259
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
BEGIN
6267
_croak_and_doublecheck_xpath
6285
get_xpath
6295
findvalue
6301
getElementById
6302
getChildNodes
6304
_flushed
6305
_set_flushed
6306
_del_flushed
6309
cut
6353
former_next_sibling
6354
former_prev_sibling
6355
former_parent
6358
cut_children
6366
erase
6443
_move_extra_data_after_erase
6478
BEGIN
6488
paste
6535
paste_before
6565
paste_after
6596
paste_first_child
6614
paste_last_child
6632
paste_within
6642
simplify
6718
_simplify
6825
_key_attr
6841
_text_with_vars
6854
_normalize_space
6863
att_nb
6868
has_no_atts
6873
_replace_vars_in_text
6887
_store_var
6896
split_at
6911
split
6924
mark
6942
_split
7016
_utf8_ify
7029
subs_text
7086
_is_string
7089
_replace_var
7096
_install_replace_sub
7114
BEGIN
BEGIN
BEGIN
BEGIN
7123
merge_text
7150
merge
7164
copy
7211
delete
7219
DESTROY
7235
ignore
7241
BEGIN
7300
global_state
7318
set_global_state
7336
init_global_state
7360
set_pretty_print
7375
_pretty_print
7383
set_empty_tag_style
7399
_pretty_print_styles
7402
set_quote
7410
set_remove_cdata
7418
set_indent
7425
set_wrap
7433
set_keep_encoding
7440
set_replaced_ents
7447
do_not_escape_gt
7453
escape_gt
7458
_keep_encoding
7461
set_do_not_escape_amp_in_atts
7467
output_filter
7468
output_text_filter
7471
set_output_filter
7489
set_output_text_filter
7507
set_expand_external_entities
7514
set_keep_atts_order
7521
keep_atts_order
7524
BEGIN
7527
start_tag
7645
end_tag
7721
_restore_original_prefix
7740
print
7778
flush
7783
purge
7789
_flush
7807
__flush
7845
xml_text
7870
xml_text_only
7878
sprint
7906
_wrap_text
7924
_sprint
7962
xml_string
7967
pcdata_xml_string
8000
BEGIN
8007
_gen_mark
8013
_protect_extra_data
8019
_unprotect_extra_data
8024
cdata_string
8034
att_xml_string
8048
_att_xml_string
8067
ent_string
8082
text
8107
text_only
8110
trimmed_text
8119
trim
8136
remove_cdata
8150
_is_private
8151
_is_private_name
8157
normalize
8171
toSAX1
8174
toSAX2
8177
_toSAX
8222
_start_tag_data_SAX1
8234
_end_tag_data_SAX1
8240
_start_tag_data_SAX2
8261
_atts_to_SAX2
8280
_start_prefix_mapping
8299
_end_prefix_mapping
8307
_end_tag_data_SAX2
8313
contains_text
8327
set_text
8359
set_content
8421
insert
8448
insert_new_elt
8469
wrap_in
8518
replace
8543
replace_with
8554
move
8563
prefix
8586
suffix
8607
path
8613
xpath
8631
_stringify_struct
8642
_wrap_range
8666
wrap_children
8678
_match_expr
8685
_match_tag
8696
field_to_att
8705
att_to_field
8715
sort_children_on_field
8717
__ANON__
8722
sort_children_on_att
8724
__ANON__
8729
sort_children_on_value
8737
sort_children
8764
before
8769
after
8774
lt
8780
le
8786
gt
8792
ge
8799
cmp
8837
_dump
8877
_dump_extra_data
8901
_short_text