Branch Coverage

blib/lib/WebService/Browshot.pm
Criterion Covered Total %
branch 1 44 2.2


line true false branch
117 1 0 if ($VERSION =~ /^(\d+\.\d+)\.\d/)
196 0 0 if ($content ne '') { }
197 0 0 unless open TARGET, "> $file"
346 0 0 unless defined $args{'url'}
485 0 0 if (exists $args{'url'} and $args{'url'} =~ m[image/(\d+)\?]i and not exists $args{'id'}) { }
0 0 elsif (not exists $args{'id'}) { }
489 0 0 if ($args{'url'} =~ /&width=(\d+)\?/i and not exists $args{'width'})
492 0 0 if ($args{'url'} =~ /&height=(\d+)\?/i and not exists $args{'height'})
506 0 0 if ($res->is_success) { }
555 0 0 if ($content ne '') { }
556 0 0 unless open TARGET, "> $file"
769 0 0 if $@
774 0 0 unless ($res->is_success)
802 0 0 if $@
807 0 0 unless ($res->is_success)
823 0 0 if ($@)
840 0 0 if ($@)
856 0 0 if (exists $$parameters{'urls'})
863 0 0 if (exists $$parameters{'instances'})
871 0 0 if defined $$parameters{$key}
881 0 0 if ($$self{'_debug'})
893 0 0 if ($$self{'_debug'})