Condition Coverage

blib/lib/WWW/Discogs.pm
Criterion Covered Total %
condition 37 72 51.3


and 3 conditions

line !l l&&!r l&&r condition
30 2 0 3 not $id and 'artist' =~ /artist|release|label|master/
2 0 0 'artist' =~ /master|release/ and not $id =~ /^\d+$/
0 1 1 'artist' =~ /artist|label/ and $id =~ /^\s*$/
0 0 1 $$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'artist'}
3 0 3 not $id and 'label' =~ /artist|release|label|master/
3 0 0 'label' =~ /master|release/ and not $id =~ /^\d+$/
0 2 1 'label' =~ /artist|label/ and $id =~ /^\s*$/
0 0 1 $$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'label'}
3 0 2 not $id and 'master' =~ /artist|release|label|master/
0 1 2 'master' =~ /master|release/ and not $id =~ /^\d+$/
1 0 0 'master' =~ /artist|label/ and $id =~ /^\s*$/
0 0 1 $$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'master'}
3 0 2 not $id and 'release' =~ /artist|release|label|master/
0 1 2 'release' =~ /master|release/ and not $id =~ /^\d+$/
1 0 0 'release' =~ /artist|label/ and $id =~ /^\s*$/
0 0 1 $$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'release'}
0 6 0 not $id and 'search' =~ /artist|release|label|master/
1 0 0 'search' =~ /master|release/ and not $id =~ /^\d+$/
1 0 0 'search' =~ /artist|label/ and $id =~ /^\s*$/
0 0 0 $$json{'resp'}{'status'} == &JSON::XS::true() and defined $$json{'resp'}{'search'}

or 2 conditions

line l !l condition
30 2 3 $args{'id'} || $args{'name'} || ''
3 3 $args{'id'} || $args{'name'} || ''
3 2 $args{'id'} || $args{'name'} || ''
3 2 $args{'id'} || $args{'name'} || ''
0 6 $args{'id'} || $args{'name'} || ''
106 0 6 $args{'apiurl'} || 'http://api.discogs.com'