Condition Coverage

blib/lib/Data/Sah/Compiler.pm
Criterion Covered Total %
condition 68 120 56.6


and 3 conditions

line !l l&&!r l&&r condition
40 0 0 0 $opts->{'zeropad'} && !($opts->{'skip_empty'} && !defined($2))
0 0 0 ++$i && $opts->{'skip_empty'} && !defined($2)
354 10622 8 0 $$clset{"$clause.is_expr"} and not $meta->{'allow_expr'}
359 458 0 0 $$clset{"$clause.$a.is_expr"} and not $av->{'allow_expr'}
396 6247 1383 2966 $op and $op eq 'or' || $op eq 'and'
453 6281 0 4349 defined $op and not $ie
463 6944 3686 0 $is_multi and ref $cv ne "ARRAY"
517 15183 0 0 not $cd->{'args'}{'allow_expr'} and /\.is_expr\z/
15183 0 0 not $cd->{'args'}{'allow_expr'} and /\.is_expr\z/ and $clset->{$_}
543 17 570 8803 $cl->[2]{'tags'} and grep {$_ eq "constraint";} @{$$cl[2]{"tags"};}
653 10130 0 0 $args{'cache'} and $res->{'base'}
0 0 0 $args{'cache'} and $res->{'base'} and $res->{'base'} ne $res->{'type'}
674 0 0 0 !ref($cd->{'result'}) && ($ENV{'LINENUM'} // 1)
705 16830 0 468 $_->{'name'} eq $name and $_->{'phase'} eq $extra_keys->{'phase'}
710 23737 0 468 $found and not $allow_duplicate

or 2 conditions

line l !l condition
27 0 0 $opts //= {}
28 0 0 $opts->{'width'} //= 4
29 0 0 $opts->{'zeropad'} //= 0
30 0 0 $opts->{'skip_empty'} //= 1
66 35 0 $cd->{'spath'} // []
151 0 108 $clsets->[$ia]{"$ca.prio"} // 50
152 0 108 $clsets->[$ib]{"$cb.prio"} // 50
189 10465 17 $meta //= {"prio", 50}
207 0 15160 $args{'load'} // 1
234 0 0 $args{'load'} // 1
274 9448 27 $cd->{'args'}{'indent_level'} // 0
278 0 9475 $ENV{'LANG'} || 'en_US'
293 0 4746 $args->{'data_name'} //= "data"
297 0 4746 $args->{'allow_expr'} //= 1
298 2 4744 $args->{'on_unhandled_attr'} //= "die"
299 2 4744 $args->{'on_unhandled_clause'} //= "die"
300 1 4745 $args->{'skip_clause'} //= []
301 0 4746 $args->{'mark_missing_translation'} //= 1
303 0 4730 $ENV{'LANG'} || $ENV{'LANGUAGE'} || 'en_US'
380 0 120 ($cd->{'nschema'}[1]{'of'} // $cd->{'nschema'}[1]{'each_elem'}) // "any"
529 389 9173 ($clset->{'default_lang'} // ($cd->{'outer_cd'} ? $cd->{'outer_cd'}{'clset_dlang'} : undef)) // "en_US"
636 3152 1908 $res // 0
644 0 10130 $args{'resolve_opts'} // {}
713 23737 0 $extra_keys // {}

or 3 conditions

line l !l&&r !l&&!r condition
176 54 4633 10496 /\A_/ || /\./
303 16 4730 0 $_ //= $ENV{'LANG'} || $ENV{'LANGUAGE'} || 'en_US'
376 1218 168 6369 $clause eq "between" or $clause eq "xbetween"
380 2 0 120 $cd->{'nschema'}[1]{'of'} // $cd->{'nschema'}[1]{'each_elem'}
396 1474 1492 1383 $op eq 'or' || $op eq 'and'
466 4275 4030 2299 $cd->{'CLAUSE_DO_MULTI'} or not $is_multi
521 0 2 0 $cd->{'coerce_to'} //= $clset->{'x.perl.coerce_to'}
525 15015 0 54 not /\Ac\./ or /\Ac\.\Q$cname\E\./
529 54 389 9173 $clset->{'default_lang'} // ($cd->{'outer_cd'} ? $cd->{'outer_cd'}{'clset_dlang'} : undef)