Condition Coverage

lib/Net/LastFMAPI.pm
Criterion Covered Total %
condition 15 43 34.8


and 3 conditions

line !l l&&!r l&&r condition
222 0 2 1 $params{'format'} and $params{'format'} eq 'xml'
224 3 0 0 defined $params{'page'} and not $$methods{$method}{'page'}
270 0 3 0 $res->is_success and $params{'format'} eq 'json' && !exists(&$decoded_json()->{'error'}) || $params{'format'} eq 'xml' && $content =~ //
323 0 0 0 @main_keys == 1 and @data_keys == 2
0 0 0 @main_keys == 1 and @data_keys == 2 and $data_keys[0] eq '@attr'
325 0 0 0 defined $text and $text =~ /^\s+$/
0 0 0 defined $text and $text =~ /^\s+$/ and defined $total
0 0 0 defined $text and $text =~ /^\s+$/ and defined $total and $total == 0
376 0 0 3 $m and $$m{'auth'}

or 2 conditions

line l !l condition
263 2 1 $params{'format'} ||= 'xml'
394 3 0 $session_key || die('unable to acquire session key...')

or 3 conditions

line l !l&&r !l&&!r condition
221 1 0 2 $params{'format'} or $xml
270 2 0 1 $params{'format'} eq 'json' && !exists(&$decoded_json()->{'error'}) || $params{'format'} eq 'xml' && $content =~ //
376 0 0 3 delete $$params{'auth'} or $m and $$m{'auth'}
427 1 0 15 $_ eq 'format' || $_ eq 'callback'