Branch Coverage

blib/lib/Mojo/WebService/LastFM.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
28 3 5 unless defined $params->{'username'}
29 1 4 unless defined $callback
43 0 4 unless defined $tx->result
46 0 4 unless defined $json
65 4 3 if (ref $params eq 'HASH') { }
2 1 elsif (ref \$params eq 'SCALAR') { }
67 0 4 unless exists $params->{'username'}
79 1 5 unless defined $callback
86 0 3 unless defined $json
88 2 1 if (exists $json->{'recenttracks'}{'track'}[0]) { }
121 1 2 unless defined $user
122 1 1 unless defined $callback