Branch Coverage

blib/lib/VK/MP3.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
18 1 3 unless _valid_new_args(\%args)
28 2 1 unless $self->_login
37 1 2 unless $res->is_success
60 0 1 unless $res->is_success
66 0 1 unless defined $$json{'all'} and ref $$json{'all'} eq 'ARRAY'
70 0 3 unless ref $item eq 'ARRAY' and scalar @{$item;} > 7
86 0 3 unless $name
95 2 1 if ($duration) { }
112 1 1 if ($res->is_success and $res->decoded_content =~ /var\s+vk\s*=\s*\{[^\{\}]*?id\s*\:\s*(\d+)/i || $res->decoded_content =~ m[login\.vk\.com/\?act=logout]i)
132 0 4 unless ref $args eq 'HASH'
134 1 6 unless defined $$args{$_} and ref $$args{$_} eq ''