Condition Coverage

blib/lib/App/Licensecheck.pm
Criterion Covered Total %
condition 109 160 68.1


and 3 conditions

line !l l&&!r l&&r condition
286 0 0 0 exists $attr{'org'} and $attr{'org'} eq $org
367 0 0 7 $offset and not $copyrights
0 1 6 $offset and not $copyrights and $license eq "UNKNOWN"
383 12 7 32 defined $license && defined $copyrights
582 123045 157004 32275 $+{'prop'} and $+{'prop'} eq $prop
583 4148 23775 4352 $+{'org'} and $+{'org'} eq $org
723 1793 2079 2343 $2 and $1 eq "singleversion"
726 1793 4125 297 $2 and $1 eq "usage"
731 5665 297 253 $3 and $1 eq "trait"
1047 778165 0 1229 $match{$_} and $match{$_}{'name'}
1050 1401 0 216 $name and $match{$name}{'name'}{$pos}
0 1 215 $name and $match{$name}{'name'}{$pos} and not defined $coverage->get_range($pos, $match{$name}{'name'}{$pos}->end)->get_element(0)
1 215 0 $name and $match{$name}{'name'}{$pos} and not defined $coverage->get_range($pos, $match{$name}{'name'}{$pos}->end)->get_element(0) and !$skip_stepwise || $L_grant_atomic_incomplete{$name}
1062 0 175 40 not $version and grep {$_ eq $name;} @L_type_versioned
0 79 96 not $version and grep {$_ eq $name;} @L_type_singleversion
1256 351 1 1 grep {$match{$_}{'name'};} @L_contains_bsd and $licensetext =~ /$L{'bsd_1'}/u
1406 67 9464 0 not $grant{$id} and $L_grant_stepwise_incomplete{$id} || $force_atomic
1457 247 74942 0 not $license{$id} || $grant{$id} || $match{$id}{'custom'} and $L_grant_stepwise_incomplete{$id} || $force_atomic
1510 35062 346 2 $id eq "cc_by" and grep {$_->name eq "grant(cc_by_sa_3)";} @clues
1513 35208 198 2 $license{'rpsl_1'} and grep {$id eq $_;} "mpl", "python"
1516 15 35391 0 not $grant{$id} and $L_grant_stepwise_incomplete{$id} || $force_atomic
1558 93 49680 0 not $license{$id} and $match{$id}{'custom'}
1567 799 0 0 $license{'caldera'} and $id eq "bsd"
1568 796 3 0 $license{'cube'} and $id eq "zlib"
1569 796 3 0 $license{'dsdp'} and $id eq "ntp"
1570 793 6 0 $license{'mit_cmu'} and $id eq "ntp_disclaimer"
1571 793 6 0 $license{'ntp_disclaimer'} and $id eq "ntp"
1573 100 696 3 not $license{$id} || $grant{$id} and $licensetext =~ /$RE{"GRANT_$id"}/u

or 2 conditions

line l !l condition
1608 325 28 $expr ||= "UNKNOWN"
1624 353 0 (@$schemes ? $expr : $license) || 'UNKNOWN'

or 3 conditions

line l !l&&r !l&&!r condition
58 9 0 0 $_->[0] || ()
9 0 0 $_->[1] || ()
62 3 0 0 $_->[0] || ()
2 1 0 $_->[1] || ()
292 0 0 0 $Regexp::Pattern::License::RE{$key}{'name'} // $key
592 28 8030 738 $value ||= $hashref->{$prop}
717 5664 540 0 $self->best_value($val, 'name') || $key
719 55 143 0 $self->best_value($val, 'caption') || $val->{'name'} || $key
860 357 0 0 $L{'name'}{$id} || $id
861 357 0 0 $L{'caption'}{$id} || $id
871 5 0 0 $L{'name'}{$id2} || $id2
872 5 0 0 $L{'caption'}{$id2} || $id2
890 8 349 0 $L{'caption'}{$legacy} || $legacy
1050 215 0 0 !$skip_stepwise || $L_grant_atomic_incomplete{$name}
1406 0 0 9464 $L_grant_stepwise_incomplete{$id} || $force_atomic
1457 62 69 74942 $license{$id} || $grant{$id} || $match{$id}{'custom'}
343 0 74599 $L_grant_stepwise_incomplete{$id} || $force_atomic
1485 116 62 75011 $license{$id} or $grant{$id}
1516 590 0 34801 $L_grant_stepwise_incomplete{$id} || $force_atomic
1563 93 7 49673 $license{$id} or $grant{$id}
7 699 48974 $license{$id} or $grant{$id} or $L_grant_stepwise_incomplete{$id}
699 0 48974 $license{$id} or $grant{$id} or $L_grant_stepwise_incomplete{$id} or $force_atomic
1573 93 7 699 $license{$id} || $grant{$id}
1597 93 10 696 $license{$id} or $grant{$id}