Condition Coverage

blib/lib/String/License.pm
Criterion Covered Total %
condition 108 148 72.9


and 3 conditions

line !l l&&!r l&&r condition
256 125587 156119 31208 $+{'prop'} and $+{'prop'} eq $prop
257 4097 23226 3885 $+{'org'} and $+{'org'} eq $org
397 1630 1890 2130 $2 and $1 eq "singleversion"
400 1630 3750 270 $2 and $1 eq "usage"
405 5150 270 230 $3 and $1 eq "trait"
658 753350 0 980 $match{$_} and $match{$_}{'name'}
661 1372 0 193 $name and $match{$name}{'name'}{$pos}
0 1 192 $name and $match{$name}{'name'}{$pos} and not $self->contains_tag($pos, $match{$name}{'name'}{$pos}[1])
1 192 0 $name and $match{$name}{'name'}{$pos} and not $self->contains_tag($pos, $match{$name}{'name'}{$pos}[1]) and !$skip_stepwise || $L_grant_atomic_incomplete{$name}
669 0 154 38 not $version and grep {$_ eq $name;} @L_type_versioned
0 73 81 not $version and grep {$_ eq $name;} @L_type_singleversion
828 1 330 0 not $license{'fsful'} and $string =~ /$L{'fsful'}/u
843 1 330 0 not $license{'fsfullr'} and $string =~ /$L{'fsfullr'}/u
862 63 8874 0 not $grant{$id} and $L_grant_stepwise_incomplete{$id} || $force_atomic
8874 0 0 not $grant{$id} and $L_grant_stepwise_incomplete{$id} || $force_atomic and $string =~ /$RE{"GRANT_$id"}/u
897 235 69947 321 not $license{$id} || $grant{$id} || $match{$id}{'custom'} and $L_grant_stepwise_incomplete{$id} || $force_atomic
69947 321 0 not $license{$id} || $grant{$id} || $match{$id}{'custom'} and $L_grant_stepwise_incomplete{$id} || $force_atomic and $string =~ /$RE{"GRANT_$id"}/u
931 33000 198 2 $license{'rpsl_1'} and grep {$id eq $_;} "mpl", "python"
934 14 32630 554 not $grant{$id} and $L_grant_stepwise_incomplete{$id} || $force_atomic
32630 0 554 not $grant{$id} and $L_grant_stepwise_incomplete{$id} || $force_atomic and $RE{"GRANT_$id"}
32630 548 6 not $grant{$id} and $L_grant_stepwise_incomplete{$id} || $force_atomic and $RE{"GRANT_$id"} and $string =~ /$RE{"GRANT_$id"}/u
958 83 46588 0 not $license{$id} and $match{$id}{'custom'}
967 748 0 0 $license{'caldera'} and $id eq "bsd"
968 745 3 0 $license{'cube'} and $id eq "zlib"
969 745 3 0 $license{'dsdp'} and $id eq "ntp"
970 742 6 0 $license{'mit_cmu'} and $id eq "ntp_disclaimer"
971 742 6 0 $license{'ntp_disclaimer'} and $id eq "ntp"
973 90 658 0 not $license{$id} || $grant{$id} and $string =~ /$RE{"GRANT_$id"}/u

or 2 conditions

line l !l condition
999 304 27 $expr ||= "UNKNOWN"
1000 304 27 $license ||= "UNKNOWN"

or 3 conditions

line l !l&&r !l&&!r condition
216 322 14 0 $thing->[1] || $thing->[2]
266 57 7484 707 $value ||= $hashref->{$prop}
391 5127 513 0 $self->best_value($val, 'name') || $key
393 50 130 0 $self->best_value($val, 'caption') || $val->{'name'} || $key
520 333 0 0 $L{'name'}{$id} || $id
521 333 0 0 $L{'caption'}{$id} || $id
530 5 0 0 $L{'name'}{$id2} || $id2
531 5 0 0 $L{'caption'}{$id2} || $id2
550 8 325 0 $L{'caption'}{$legacy} || $legacy
661 192 0 0 !$skip_stepwise || $L_grant_atomic_incomplete{$name}
862 0 0 8874 $L_grant_stepwise_incomplete{$id} || $force_atomic
897 57 65 70268 $license{$id} || $grant{$id} || $match{$id}{'custom'}
321 0 69947 $L_grant_stepwise_incomplete{$id} || $force_atomic
913 113 57 70333 $license{$id} or $grant{$id}
934 554 0 32630 $L_grant_stepwise_incomplete{$id} || $force_atomic
963 83 7 46581 $license{$id} or $grant{$id}
7 658 45923 $license{$id} or $grant{$id} or $L_grant_stepwise_incomplete{$id}
658 0 45923 $license{$id} or $grant{$id} or $L_grant_stepwise_incomplete{$id} or $force_atomic
973 83 7 658 $license{$id} || $grant{$id}
986 83 7 658 $license{$id} or $grant{$id}