Condition Coverage

blib/lib/WebService/Browshot.pm
Criterion Covered Total %
condition 4 71 5.6


and 3 conditions

line !l l&&!r l&&r condition
469 0 0 0 exists $args{'url'} and $args{'url'} =~ m[image/(\d+)\?]i
0 0 0 exists $args{'url'} and $args{'url'} =~ m[image/(\d+)\?]i and not exists $args{'id'}
473 0 0 0 $args{'url'} =~ /&width=(\d+)\?/i and not exists $args{'width'}
476 0 0 0 $args{'url'} =~ /&height=(\d+)\?/i and not exists $args{'height'}
762 0 0 0 $try < $self->{'_retry'} and defined $@
796 0 0 0 $try < $self->{'_retry'} and defined $@

or 2 conditions

line l !l condition
89 0 1 $args{'timeout'} || 90
98 1 0 $args{'key'} || ''
0 1 $args{'base'} || 'https://api.browshot.com/api/v1/'
0 1 $args{'debug'} || 0
773 0 0 $args{'file'} || ''
843 0 0 $args{'action'} || ''
844 0 0 $args{'parameters'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
191 0 0 0 $args{'file'} || $self->error('Missing file in simple_file')
249 0 0 0 $args{'id'} || $self->error('Missing id in instance_info')
286 0 0 0 $args{'id'} || $self->error('Missing id in browser_info')
356 0 0 0 $args{'id'} || $self->error('Missing id in screenshot_info')
406 0 0 0 $args{'url'} || $self->error('Missing url in screenshot_search')
431 0 0 0 $args{'id'} || $self->error('Missing id in screenshot_host')
535 0 0 0 $args{'file'} || $self->error('Missing file in screenshot_thumbnail_file')
582 0 0 0 $args{'id'} || $self->error('Missing id in screenshot_share')
612 0 0 0 $args{'id'} || $self->error('Missing id in screenshot_delete')
637 0 0 0 $args{'id'} || $self->error('Missing id in screenshot_html')
697 0 0 0 $args{'file'} || $self->error('Missing file in batch_create')
698 0 0 0 $args{'instance_id'} || $self->error('Missing instance_id} in batch_create')
724 0 0 0 $args{'id'} || $self->error('Missing id in batch_info')