Branch Coverage

blib/lib/WWW/Shorten/IsGd.pm
Criterion Covered Total %
branch 11 16 68.7


line true false branch
16 1 2 unless my $url = shift()
18 2 0 defined 'WWW::Shorten::IsGd'->VERSION ? :
23 0 2 unless $response->is_success
25 0 2 if $shorturl =~ /Error/
26 2 0 if ($response->content =~ m[(http\:\/\/is\.gd\/[\w_]+)])
34 1 2 unless my $url = shift()
37 1 1 unless $url =~ m[^https?://]i
40 0 2 unless $response->is_redirect