Condition Coverage

blib/lib/WWW/Firecrawl.pm
Criterion Covered Total %
condition 59 128 46.0


and 3 conditions

line !l l&&!r l&&r condition
71 11 0 5 defined $meta->{'error'} and length $meta->{'error'}
78 25 0 0 @args == 1 && ref $args[0] eq 'HASH'
90 2 0 1 not ref $spec and defined $spec
2 0 1 not ref $spec and defined $spec and $spec eq "any-non-2xx"
95 5 0 0 defined $meta->{'error'} and length $meta->{'error'}
106 4 0 1 defined $meta->{'error'} and length $meta->{'error'}
165 15 0 0 defined $cw and $cw eq "Internal response"
193 3 0 1 defined $ra and $ra =~ /\A\d+\z/
211 2 1 4 $retryable and $attempt < $max
236 0 0 21 defined $body and length $body
267 0 1 18 ref $data eq "HASH" and exists $data->{'success'}
1 17 1 ref $data eq "HASH" and exists $data->{'success'} and not $data->{'success'}
300 0 2 7 defined $sc && ($sc < 200 || $sc >= 300)
301 3 0 6 defined $err and length $err
3 1 5 defined $err and length $err and $bad_sc
304 3 0 1 defined $err and length $err
325 12 1 3 $strict and $self->is_failure->($data)
372 1 0 1 defined $id and length $id
390 0 0 1 defined $id and length $id
405 0 0 1 defined $id and length $id
449 0 0 1 defined $next_url and length $next_url
528 0 0 1 defined $id and length $id
543 0 0 0 defined $id and length $id
558 0 0 1 defined $id and length $id
573 0 0 0 defined $next_url and length $next_url
607 0 0 1 defined $id and length $id
640 0 0 0 defined $id and length $id
655 0 0 0 defined $id and length $id
702 0 0 0 defined $id and length $id
749 0 0 0 defined $id and length $id
821 0 0 1 ref $e && $e->isa('WWW::Firecrawl::Error')

or 2 conditions

line l !l condition
70 16 0 $page->{'metadata'} || {}
72 10 1 $meta->{'statusCode'} // 0
94 5 0 $p->{'metadata'} || {}
96 5 0 $meta->{'statusCode'} // 200
105 5 0 $p->{'metadata'} || {}
107 4 0 $meta->{'statusCode'} // 0
167 0 0 ($response->decoded_content // $response->message) // "unknown"
199 3 0 $backoff->[$idx] // 1
257 0 0 ref $data eq 'HASH' && ($data->{'error'} || $data->{'message'}) || $response->message || 'unknown error'
268 0 0 $data->{'error'} || $data->{'message'} || 'request failed'
292 6 1 $page->{'metadata'}{'statusCode'} // 0
332 3 0 $self->scrape_error($data) // "unknown"
831 1 0 $self->scrape_error($res) // "unknown"

or 3 conditions

line l !l&&r !l&&!r condition
97 1 2 2 $sc < 200 || $sc >= 300
167 0 0 0 $response->decoded_content // $response->message
332 3 0 0 $data->{'metadata'}{'sourceURL'} // $data->{'metadata'}{'url'}