Condition Coverage

blib/lib/YAMLScript/Reader.pm
Criterion Covered Total %
condition 65 110 59.0


and 3 conditions

line !l l&&!r l&&r condition
185 0 0 0 is_map($n) and pairs($n) == 1
399 1 1 0 is_map($elems[0]) and @{$elems[0]{'pair'};} > 1
415 0 2 1 @elems and is_def($elems[0])
584 0 0 0 ref $n eq "Lingy::List" and @$n >= 2
0 0 0 ref $n eq "Lingy::List" and @$n >= 2 and ref $n->[0] eq "Lingy::Symbol"
0 0 0 ref $n eq "Lingy::List" and @$n >= 2 and ref $n->[0] eq "Lingy::Symbol" and "$n->[0]" eq "defn"
0 0 0 ref $n eq "Lingy::List" and @$n >= 2 and ref $n->[0] eq "Lingy::Symbol" and "$n->[0]" eq "defn" and ref $n->[1] eq "Lingy::Symbol"
0 0 0 ref $n eq "Lingy::List" and @$n >= 2 and ref $n->[0] eq "Lingy::Symbol" and "$n->[0]" eq "defn" and ref $n->[1] eq "Lingy::Symbol" and "$n->[1]" eq "main"
672 25 46 1 @$tokens >= 2 and $tokens->[0] eq "->"
71 0 1 @$tokens >= 2 and $tokens->[0] eq "->" and $tokens->[1] =~ /^$sym\($/
706 12 0 0 @$rest == 3 and $rest->[1] =~ qr/^$op$/
873 54 2 1 "$k" eq "cond" and is_map($v)
891 2 0 0 $n->{'xtop'} and tag_ysexpr($n)
912 14 19 3 is_plain($v) and text($v) eq ""
941 56 0 1 $k =~ /^(?:defn|defmacro)\s+$sym$/ and is_map($v)

or 2 conditions

line l !l condition
111 0 539 $event->{'anchor'} || '-'
0 539 $event->{'tag'} || '-'
848 0 54 $n->{'ytag'} //= "module"
1093 146 3 $event->{'valu'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
111 539 0 0 $$event_dict{$event->{'name'}} || XXX($event)
344 2 0 10 @$dargs || is_def($first) || is_map($first)
693 0 5 23 $l or @$group != 3
5 5 18 $l or @$group != 3 or not $group->[1] =~ qr/^$op$/
762 0 0 0 $ytag || ref $node
835 0 1 56 tag_catch($p) or tag_defn_multi($p)
1 5 51 tag_catch($p) or tag_defn_multi($p) or tag_defn($p)
7 5 45 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p)
12 1 43 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p) or tag_if($p)
8 2 40 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p) or tag_if($p) or tag_fn($p)
4 0 40 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p) or tag_if($p) or tag_fn($p) or tag_let($p)
2 0 40 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p) or tag_if($p) or tag_fn($p) or tag_let($p) or tag_loop($p)
1 0 39 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p) or tag_if($p) or tag_fn($p) or tag_let($p) or tag_loop($p) or tag_try($p)
1 3 36 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p) or tag_if($p) or tag_fn($p) or tag_let($p) or tag_loop($p) or tag_try($p) or tag_when($p)
3 36 0 tag_catch($p) or tag_defn_multi($p) or tag_defn($p) or tag_def($p) or tag_if($p) or tag_fn($p) or tag_let($p) or tag_loop($p) or tag_try($p) or tag_when($p) or tag_call($p)
888 2 0 85 is_double($n) or is_literal($n)
891 0 0 2 $n->{'xtop'} and tag_ysexpr($n) or tag_istr($n)
895 0 46 39 is_key($n) or tag_scalar($n)
1093 34 145 4 $text //= $event->{'valu'} // ""