line |
true |
false |
branch |
24
|
3 |
9 |
if ($yaml) |
25
|
3 |
0 |
if ($yaml->{'license'} and $yaml->{'license'} ne "unknown") |
27
|
0 |
3 |
if ref $license eq "ARRAY" |
37
|
0 |
12 |
if (my($file) = grep({$_ =~ /^(?:LICEN[CS]E|COPYING)\b/;} @$files)) |
45
|
0 |
10 |
if $file =~ /(?:Makefile|Build)\.PL$/ |
47
|
0 |
10 |
unless -r $path |
48
|
0 |
10 |
unless open my $fh, "<", $path |
57
|
0 |
44 |
if ($first_four eq '=hea' and ($uc_head = uc $_) =~ /(?:LICEN[CS]E|LICEN[CS]ING|COPYRIGHT|LEGAL)/) { } |
|
4 |
40 |
elsif ($first_four eq '=hea' or $first_four eq '=cut') { } |
|
0 |
40 |
elsif ($in_pod) { } |
60
|
0 |
0 |
if ($in_pod) |
62
|
0 |
0 |
if (@guessed) { } |
74
|
0 |
4 |
if ($in_pod) |
76
|
0 |
0 |
if (@guessed) { } |
89
|
0 |
10 |
if ($pod) |
91
|
0 |
0 |
if (@guessed) { } |
97
|
0 |
10 |
if (@possible_licenses) { } |
103
|
0 |
10 |
if @unknown_license_texts |
106
|
0 |
12 |
if (%licenses) |
109
|
0 |
0 |
if (@possible_licenses == 1) |
133
|
3 |
9 |
$yaml->{'license'} && $yaml->{'license'} ne 'unknown' ? : |
137
|
0 |
0 |
unless $yaml |
138
|
0 |
0 |
unless $yaml->{'license'} |
148
|
0 |
12 |
$d->{'external_license_file'} || $d->{'license_in_pod'} ? : |
160
|
0 |
12 |
+(shift())->{'external_license_file'} ? : |
172
|
0 |
12 |
$d->{'license_in_pod'} ? : |
186
|
12 |
0 |
unless $d->{'license_in_pod'} |
188
|
0 |
0 |
@files_with_licenses ? : |