blib/lib/WebService/Freesound.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 17 | 30 | 56.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
449 | 1 | 1 | 1 | defined $args{'refresh_if_expired'} and $expired |
651 | 1 | 0 | 2 | defined $details and defined $details->{'results'}[0]{'name'} |
1 | 0 | 2 | defined $details and defined $details->{'results'}[0]{'name'} and defined $details->{'results'}[0]{'type'} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
196 | 1 | 0 | 0 | $args{'client_id'} || croak('client_id is required') |
198 | 1 | 0 | 0 | $args{'client_secret'} || croak('client_secret is required') |
200 | 1 | 0 | 0 | $args{'session_file'} || croak('session_file is required') |
375 | 3 | 0 | 0 | shift() || croak('Need the code from Freesound authorisation') |
519 | 7 | 1 | 0 | shift() || croak('Need a Freesound query string') |
543 | 3 | 1 | 0 | shift() || croak('download needs a Freesound id') |
544 | 2 | 1 | 0 | shift() || croak('download needs a destination directory id') |