Branch Coverage

blib/lib/Net/Google/Search.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
167 0 0 unless ($self->init('search', @_))
193 0 0 if ($$args{'lr'})
194 0 0 ref $$args{'lr'} eq 'ARRAY' ? :
0 0 unless defined $self->lr(ref $$args{'lr'} eq 'ARRAY' ? @{$$args{'lr'};} : $$args{'lr'})
197 0 0 if ($$args{'restrict'})
198 0 0 ref $$args{'restrict'} eq 'ARRAY' ? :
0 0 unless defined $self->restrict(ref $$args{'restrict'} eq 'ARRAY' ? @{$$args{'restrict'};} : $$args{'restrict'})
201 0 0 if (defined $$args{'filter'})
202 0 0 unless defined $self->filter($$args{'filter'})
205 0 0 if (defined $$args{'safe'})
206 0 0 unless defined $self->safe($$args{'safe'})
209 0 0 if (defined $$args{'starts_at'})
210 0 0 unless defined $self->starts_at($$args{'starts_at'})
213 0 0 if (defined $$args{'max_results'})
214 0 0 unless defined $self->max_results($$args{'max_results'})
264 0 0 if (scalar @data > 1 and $data[0] eq '')
268 0 0 if (@data)
287 0 0 if (defined $at)
310 0 0 if (defined $max)
312 0 0 if (int $max < 1)
337 0 0 if (scalar @types > 1 and $types[0] eq '')
342 0 0 if (@types)
360 0 0 if (defined $bool)
361 0 0 $bool ? :
377 0 0 if (defined $bool)
378 0 0 $bool ? :
399 0 0 if (scalar @lang > 1 and $lang[0] eq '')
404 0 0 if (@lang)
424 0 0 if (defined $bool)
425 0 0 $bool ? :
446 0 0 if (defined $$self{'__state'} and $$self{'__state'} eq $self->_state)
458 0 0 $to_fetch > 10 ? :
466 0 0 unless (defined $res)
472 0 0 if (not $self->return_estimatedTotal and $start_at >= $$res{'__endIndex'})
480 0 0 if ($self->return_estimatedTotal)
482 0 0 if ($$self{'__possible'} + scalar(@{$res->resultElements;}) > $$res{'__estimatedTotalResultsCount'})
493 0 0 if ($$self{'__possible'} + scalar(@{$res->resultElements;}) == $$res{'__estimatedTotalResultsCount'})
543 0 0 $self->filter ? :
0 0 $self->safe ? :
569 0 0 unless ($response)