line |
true |
false |
branch |
18
|
10 |
1 |
if (ref $purl ne "URI::PackageURL") |
38
|
11 |
0 |
if (defined $TYPES{$purl->type}) |
42
|
0 |
11 |
if (my $download_url = $purl->qualifiers->{'download_url'}) |
63
|
1 |
0 |
if ($name and $namespace) |
67
|
1 |
0 |
if ($version) |
71
|
1 |
0 |
if ($is_sha1) { } |
98
|
1 |
0 |
if ($name and $namespace) |
102
|
1 |
0 |
if ($version) |
118
|
1 |
0 |
if ($name and $version) |
136
|
1 |
0 |
if ($name and $version) |
154
|
1 |
0 |
if ($name and $version) |
170
|
1 |
0 |
if ($namespace and $name and $version) |
177
|
0 |
0 |
if ($name and $version) |
184
|
0 |
0 |
if ($namespace and $name) |
199
|
2 |
0 |
$purl->namespace ? : |
203
|
0 |
2 |
unless ($repository_url =~ m[^(http|https|file|ftp)://]) |
211
|
2 |
0 |
if ($name and $version and $author) |
232
|
1 |
0 |
if ($name and $version) |
254
|
1 |
0 |
if ($namespace and $name and $version) |
265
|
0 |
0 |
if ($namespace and $name) |
278
|
0 |
1 |
unless $name and $namespace |