| line |
true |
false |
branch |
|
22
|
0 |
0 |
unless opendir my $dh, $spec_dir |
|
25
|
0 |
0 |
unless -f "File::Spec"->catfile($spec_dir, $file) |
|
34
|
0 |
0 |
wantarray ? : |
|
42
|
17 |
1855 |
if (ref $purl ne "URI::PackageURL") |
|
66
|
1872 |
0 |
if (defined $TYPES{$purl->type}) |
|
70
|
0 |
1872 |
if (my $download_url = $purl->qualifiers->{'download_url'}) |
|
90
|
1 |
0 |
if ($name and $namespace) |
|
94
|
1 |
0 |
if ($version) |
|
109
|
1 |
0 |
if ($name and $version) |
|
127
|
0 |
1 |
unless $name and $namespace |
|
148
|
0 |
1859 |
unless ($repository_url =~ m[^(http|https|file|ftp)://]) |
|
154
|
1859 |
0 |
if ($name and $version and $author) |
|
163
|
2 |
0 |
unless ($distpath or $distdir) |
|
167
|
1857 |
2 |
if ($distpath and not $distdir) |
|
174
|
928 |
929 |
unless ($distpath =~ m[^([A-Z]{1})/([A-Z]{2})]) |
|
188
|
0 |
1859 |
if ($distdir and not $distpath) |
|
208
|
0 |
2 |
unless ($repository_url =~ m[^(http|https)://]) |
|
214
|
0 |
2 |
unless ($repository_url =~ /hub.docker.com/) |
|
218
|
1 |
1 |
unless ($namespace) |
|
222
|
1 |
1 |
if ($name and $namespace) |
|
237
|
1 |
0 |
if ($name and $version) |
|
260
|
2 |
0 |
if ($name and $namespace) |
|
264
|
2 |
0 |
if ($version) |
|
268
|
1 |
1 |
if ($is_sha1) { } |
|
293
|
1 |
0 |
if ($name and $namespace) |
|
297
|
1 |
0 |
if ($version) |
|
315
|
0 |
0 |
if ($name and $namespace) |
|
338
|
0 |
0 |
unless ($repository_url =~ m[^(http|https)://]) |
|
344
|
0 |
0 |
unless ($namespace) |
|
348
|
0 |
0 |
if ($name and $namespace) |
|
367
|
0 |
1 |
unless ($repository_url =~ m[^(http|https)://]) |
|
371
|
1 |
0 |
if ($namespace and $name and $version) |
|
382
|
0 |
0 |
if ($namespace and $name) |
|
396
|
1 |
0 |
if ($namespace and $name and $version) |
|
403
|
0 |
0 |
if ($name and $version) |
|
410
|
0 |
0 |
if ($namespace and $name) |
|
425
|
1 |
0 |
if ($name and $version) |
|
443
|
1 |
0 |
if ($name and $version) |