Condition Coverage

blib/lib/Perl6/Perldoc/Parser.pm
Criterion Covered Total %
condition 137 176 77.8


and 3 conditions

line !l l&&!r l&&r condition
250 38 0 8 $disjoint and $depth == 1
38 0 8 $disjoint and $depth == 1 and $type eq 'item'
290 3 39 23 ($type eq 'head' || $type eq 'item') && !defined($explicitly_numbered) && !ref(${$content_ref;}) && defined ${$content_ref;} && ${$content_ref;} =~ / \A \s* [#] [^\S\n]+ /msx
299 38 0 8 $$data{'disjoint'} && !$$data{'options'}{'continued'} && !$$data{'config'}{'continued'}
334 359 9 7 $typename =~ /[[:upper:]]/msx and $typename =~ /[[:lower:]]/msx
460 16 3 34 $is_in_list and $is_item
19 5 29 $is_in_list and $is_item and $list_level == $item_level
596 0 1 0 require Carp and Carp::croak("parse() can't open file $filename ($!)")
609 0 0 0 require Carp and Carp::croak("parse() can't parse from string ($!)")
712 175 66 7 $$top{'style'} eq 'formatting' and $$top{'delim_nesting'}
770 1398 1 7 $$top{'typename'} eq 'comment' and not $line =~ /$DIR_COMMENT_BLOCK/
817 32 1 2 $is_item && $item_level == 1 && !$$top{'content'}
887 15 5 5 $is_item && $item_level == 1 && !$$top{'content'}
1093 60 14 7 $is_item && $item_level == 1 && !$$top{'content'}
1167 979 219 7 $$top{'typename'} =~ /[[:upper:]]/ and $$top{'typename'} =~ /[[:lower:]]/
1180 833 222 143 pos $line == 0 and $$top{'permits_implicit_blocks'}
1238 150 844 61 !$$top{'is_verbatim'} || exists $$top{'allow'}{substr $line, pos $line, 1} and $line =~ / \G ($FORMATTING_CODE) ((?><+)|$LEFT_ANGLE) /cgmosx
1257 2 12 47 $rdelim =~ />/ and not $rdelim =~ /$$top{'terminator'}/
1290 808 179 7 $$top{'style'} eq 'formatting' and $line =~ / \G ($$top{'initiator'}) /cgmsx
1302 808 166 13 $$top{'style'} eq 'formatting' and $$top{'typename'} =~ /\A [DLX] \Z/msx
974 9 4 $$top{'style'} eq 'formatting' and $$top{'typename'} =~ /\A [DLX] \Z/msx and $line =~ / \G [|] /cgmsx
2253 45 12 6 $has_head && $row_index == 0
2288 4 1 2 @rest != 0 && $first_sep =~ /$NWS_ROW_SEP/
2290 2 0 1 @rest == 1 && !$bottom_sep

or 2 conditions

line l !l condition
247 31 15 $$state_ref{'numberer_for'}{$type} ||= []
275 66 384 $2 || 1
370 30 0 $1 || 1
457 37 1283 $$parent_ref{'level'} || 0
501 1 0 ref $like || ''
526 3 0 ref $formatted || ''
625 63 64 $$opt_ref{'config_stack'} || {}
644 127 0 $opt_ref || {}
745 0 240 $$block{'has_config'} || 0
1454 20 7 reftype $node || ''
1766 0 2 $$data{'nested'} ||= 1
1953 0 0 ref $data || ''
1955 0 0 reftype $data || ''
1964 0 0 $data || ''
2283 0 7 $1 || ''
2284 0 7 $1 || ''

or 3 conditions

line l !l&&r !l&&!r condition
72 149 121 21 $$top{'is_blank_terminated'} or $$top{'is_implicit'}
270 20 1 $$top{'is_blank_terminated'} or $$top{'is_implicit'} or $$top{'typename'} =~ /\A (?: \(ambient\) | list | DATA | END ) /msx
187 264 65 714 not $$top{'content'} or ref $$top{'content'}[-1]
294 23 23 404 $explicitly_numbered or $implicitly_numbered
453 70 5 1320 not $line =~ /\S/msx or $is_comment
460 37 16 1267 $is_in_list || $is_item
1267 0 53 not $is_in_list || $is_item or $is_in_list and $is_item and $list_level == $item_level
521 1 2 138 $$top{'options'}{'formatted'} || $$config_ref{$$top{'typename'}}{'formatted'}
547 0 0 5 $verbatim ||= $fcode =~ /[VCMP]/msx
571 7 3 424 $$options{'allow'} || $$config{'allow'}
600 0 0 0 not exists $$opt_ref{'all_pod'} or $$opt_ref{'all_pod'} =~ /\A auto \z/imsx
750 206 34 0 $$block{'style'} ne 'implicit' or $$block{'content'}
771 5 1 1 not $$top{'content'} or ref $$top{'content'}[-1]
808 1 2 32 $item_level ||= $is_item ? 1 : 0
843 6 1 28 $verbatim || $$top{'is_verbatim'}
875 7 6 12 $item_level ||= $is_item ? 1 : 0
899 0 0 25 $verbatim || $$top{'is_verbatim'}
1084 22 12 47 $item_level ||= $is_item ? 1 : 0
1110 0 0 81 $verbatim || $$top{'is_verbatim'}
1167 39 0 1205 $$top{'typename'} =~ /^(?:\(ambient\)|table)$/msx or $$top{'typename'} =~ /[[:upper:]]/ and $$top{'typename'} =~ /[[:lower:]]/
1238 899 6 150 !$$top{'is_verbatim'} || exists $$top{'allow'}{substr $line, pos $line, 1}
1264 22 4 35 ($type =~ /[VCMP]/msx ? 1 : 0) || $$top{'is_verbatim'}
1404 0 0 1 exists $toc_wants{'item'} or exists $toc_wants{'item1'}
1464 0 0 10 exists $$wanted_ref{$node_class} || $$node{'is_semantic'} && exists $$wanted_ref{'head1'}