Branch Coverage

blib/lib/WWW/Shorten/VGd.pm
Criterion Covered Total %
branch 10 16 62.5


line true false branch
16 1 2 unless my $url = shift()
18 2 0 defined 'WWW::Shorten::VGd'->VERSION ? :
23 0 2 unless $response->is_success
25 0 2 if $shorturl =~ /Error/
26 2 0 if ($response->content =~ m[(http\:\/\/v\.gd\/[\w_]+)])
34 1 2 unless my $url = shift()
38 2 0 defined 'WWW::Shorten::VGd'->VERSION ? :
45 0 2 unless $response->is_success