Condition Coverage

blib/lib/HTML/GenToc.pm
Criterion Covered Total %
condition 80 150 53.3


and 3 conditions

line !l l&&!r l&&r condition
535 19 0 0 $args{'useorg'} and $args{'bak'}
19 0 0 $args{'useorg'} and $args{'bak'} and -e $bakfile
574 21 0 6 defined $args{'filenames'} and @{$args{'filenames'};}
21 0 6 defined $args{'filenames'} and @{$args{'filenames'};} and $#{$args{'filenames'};} == $#filenames
614 16 0 1 $args{'ignore_only_one'} and @the_list <= 1
732 44 0 10 defined $args{'anchors'}{$name_key} and $args{'anchors'}{$name_key}
771 11 1 0 not $args{'quiet'} and $args{'filename'}
809 0 48 5 $notoc && $$tok{'content'} =~ /$notoc/
560 5 48 $$tok{'content'} =~ /^$key/i and not $notoc && $$tok{'content'} =~ /$notoc/
862 48 0 47 not $name and $i < @tree
866 0 0 3 not $adone and $$tok{'type'} eq 'starttag'
0 0 3 not $adone and $$tok{'type'} eq 'starttag' and $$tok{'content'} =~ /^A/i
895 1 39 8 not $adone and $args{'use_id'}
916 51 0 3 not $adone and $$tok{'type'} eq 'starttag'
51 0 3 not $adone and $$tok{'type'} eq 'starttag' and $$tok{'content'} =~ /^A/i
1031 0 69 5 $notoc && $$tok{'content'} =~ /$notoc/
1111 5 69 $$tok{'content'} =~ /^$key/i and not $notoc && $$tok{'content'} =~ /$notoc/
1094 154 0 61 not $adone and $$tok{'type'} eq 'starttag'
154 0 61 not $adone and $$tok{'type'} eq 'starttag' and $$tok{'content'} =~ /^A/i
1139 50 0 19 $args{'inline'} and $args{'first_file'} eq $infile
1165 16 0 1 $args{'ignore_sole_first'} and $level_count{'1'} == 1
16 0 1 $args{'ignore_sole_first'} and $level_count{'1'} == 1 and $list_of_paths[0]{'level'} == 1
15 0 1 $args{'ignore_only_one'} and @list_of_paths == 1
1233 27 0 0 defined $args{'prepend_list'} and @{$args{'prepend_list'};}
1237 0 0 0 $#list_of_lists == 0 and ref $list_of_lists[0] eq 'ARRAY'
1248 27 0 0 defined $args{'append_list'} and @{$args{'append_list'};}
1252 0 0 0 $#list_of_lists == 0 and ref $list_of_lists[0] eq 'ARRAY'
1301 15 4 8 $args{'make_anchors'} and not $args{'to_string'}
19 8 0 $args{'make_anchors'} and not $args{'to_string'} and $args{'overwrite'}
1308 0 0 0 $args{'make_toc'} && $args{'inline'} && !$args{'outfile'}
1316 0 0 0 $args{'useorg'} && -e $bakfile
0 0 0 $args{'bak'} and not $args{'useorg'} && -e $bakfile
1338 0 10 0 $args{'make_anchors'} and !$args{'overwrite'} || $args{'to_string'}
1421 1 1 17 $args{'outfile'} and $args{'outfile'} ne '-'
1444 0 0 0 $args{'outfile'} and $args{'outfile'} ne '-'
1455 2 0 0 $args{'useorg'} && -e $bakfile
0 0 2 $args{'bak'} and not $args{'useorg'} && -e $bakfile
1482 0 0 17 $args{'outfile'} and $args{'outfile'} ne '-'
1571 256 54 5 not $toc_done and $$tok{'content'} =~ /$toc_tag/i

or 3 conditions

line l !l&&r !l&&!r condition
132 0 5 0 ref $invocant || $invocant
866 0 0 0 $$tok{'type'} eq 'starttag' or $$tok{'type'} eq 'endtag'
916 0 51 0 $$tok{'type'} eq 'starttag' or $$tok{'type'} eq 'endtag'
917 12 0 36 $adone || $$tok{'content'} =~ /^\s*$/
1094 16 138 0 $$tok{'type'} eq 'starttag' or $$tok{'type'} eq 'endtag'
1119 0 85 0 $args{'textonly'} or $$tok{'content'} =~ m[/?(hr|p|a|img)]i
1338 10 0 0 !$args{'overwrite'} || $args{'to_string'}
1344 0 4 12 $args{'toc_only'} || $args{'inline'}
1379 0 4 12 $args{'toc_only'} || $args{'inline'}
1567 167 136 277 $$tok{'type'} eq 'starttag' or $$tok{'type'} eq 'endtag'
303 12 265 $$tok{'type'} eq 'starttag' or $$tok{'type'} eq 'endtag' or $$tok{'type'} eq 'comment'