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"
323 0 0 unless defined $args{'url'}
462 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'}) { }
466 0 0 if ($args{'url'} =~ /&width=(\d+)\?/i and not exists $args{'width'})
469 0 0 if ($args{'url'} =~ /&height=(\d+)\?/i and not exists $args{'height'})
483 0 0 if ($res->is_success) { }
532 0 0 if ($content ne '') { }
533 0 0 unless open TARGET, "> $file"
746 0 0 if $@
751 0 0 unless ($res->is_success)
779 0 0 if $@
784 0 0 unless ($res->is_success)
800 0 0 if ($@)
817 0 0 if ($@)
833 0 0 if (exists $$parameters{'urls'})
840 0 0 if (exists $$parameters{'instances'})
848 0 0 if defined $$parameters{$key}
858 0 0 if ($$self{'_debug'})
870 0 0 if ($$self{'_debug'})