Branch Coverage

blib/lib/WebService/Browshot.pm
Criterion Covered Total %
branch 1 50 2.0


line true false branch
119 1 0 if ($VERSION =~ /^(\d+\.\d+)\.\d/)
193 0 0 if (-d $file)
203 0 0 if ($content ne '') { }
204 0 0 unless open TARGET, "> $file"
330 0 0 unless defined $args{'url'}
469 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'}) { }
473 0 0 if ($args{'url'} =~ /&width=(\d+)\?/i and not exists $args{'width'})
476 0 0 if ($args{'url'} =~ /&height=(\d+)\?/i and not exists $args{'height'})
490 0 0 if ($res->is_success) { }
540 0 0 unless (-d $dir)
544 0 0 if ($content ne '') { }
545 0 0 unless open TARGET, "> $file"
759 0 0 if $@
764 0 0 unless ($res->is_success)
792 0 0 if $@
793 0 0 if $@
798 0 0 unless ($res->is_success)
816 0 0 if ($@)
833 0 0 if ($@)
849 0 0 if (exists $parameters->{'urls'})
856 0 0 if (exists $parameters->{'instances'})
864 0 0 if defined $parameters->{$key}
874 0 0 if ($self->{'_debug'})
886 0 0 if ($self->{'_debug'})