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) { }
541 0 0 unless (-d $dir)
545 0 0 if ($content ne '') { }
546 0 0 unless open TARGET, "> $file"
819 0 0 if $@
824 0 0 unless ($res->is_success)
852 0 0 if $@
853 0 0 if $@
858 0 0 unless ($res->is_success)
876 0 0 if ($@)
893 0 0 if ($@)
909 0 0 if (exists $parameters->{'urls'})
916 0 0 if (exists $parameters->{'instances'})
924 0 0 if defined $parameters->{$key}
934 0 0 if ($self->{'_debug'})
946 0 0 if ($self->{'_debug'})