line |
true |
false |
branch |
30
|
1 |
5 |
if ref $_[1] eq 'HASH' |
|
3 |
2 |
if not $id and 'artist' =~ /artist|release|label|master/ |
|
0 |
2 |
if 'artist' =~ /master|release/ and not $id =~ /^\d+$/ |
|
1 |
1 |
if 'artist' =~ /artist|label/ and $id =~ /^\s*$/ |
|
0 |
1 |
$id =~ /^\s*$/ ? : |
|
1 |
0 |
if ($$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'artist'}) |
|
1 |
6 |
if ref $_[1] eq 'HASH' |
|
3 |
3 |
if not $id and 'label' =~ /artist|release|label|master/ |
|
0 |
3 |
if 'label' =~ /master|release/ and not $id =~ /^\d+$/ |
|
1 |
2 |
if 'label' =~ /artist|label/ and $id =~ /^\s*$/ |
|
0 |
2 |
$id =~ /^\s*$/ ? : |
|
1 |
0 |
if ($$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'label'}) |
|
1 |
5 |
if ref $_[1] eq 'HASH' |
|
2 |
3 |
if not $id and 'master' =~ /artist|release|label|master/ |
|
2 |
1 |
if 'master' =~ /master|release/ and not $id =~ /^\d+$/ |
|
0 |
1 |
if 'master' =~ /artist|label/ and $id =~ /^\s*$/ |
|
0 |
1 |
$id =~ /^\s*$/ ? : |
|
1 |
0 |
if ($$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'master'}) |
|
1 |
5 |
if ref $_[1] eq 'HASH' |
|
2 |
3 |
if not $id and 'release' =~ /artist|release|label|master/ |
|
2 |
1 |
if 'release' =~ /master|release/ and not $id =~ /^\d+$/ |
|
0 |
1 |
if 'release' =~ /artist|label/ and $id =~ /^\s*$/ |
|
0 |
1 |
$id =~ /^\s*$/ ? : |
|
1 |
0 |
if ($$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'release'}) |
|
1 |
6 |
if ref $_[1] eq 'HASH' |
|
0 |
6 |
if not $id and 'search' =~ /artist|release|label|master/ |
|
2 |
4 |
unless exists $args{'q'} |
|
3 |
1 |
if $args{'q'} =~ /^\s*$/ |
|
0 |
1 |
if 'search' =~ /master|release/ and not $id =~ /^\d+$/ |
|
0 |
1 |
if 'search' =~ /artist|label/ and $id =~ /^\s*$/ |
|
1 |
0 |
$id =~ /^\s*$/ ? : |
|
0 |
0 |
if ($$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'search'}) |
82
|
3 |
5 |
if (exists $query_params{$name}{$_}) { } |
126
|
4 |
2 |
if keys %{$query;} |
131
|
2 |
4 |
unless $res->is_success |