Condition Coverage

blib/lib/PAGI/Test/Client.pm
Criterion Covered Total %
condition 45 79 56.9


and 3 conditions

line !l l&&!r l&&r condition
341 6 0 8 @rest == 1 and ref $rest[0] eq "CODE"
0 0 2 @rest % 2 == 1 and ref $rest[-1] eq "CODE"
425 6 0 6 @rest == 1 and ref $rest[0] eq "CODE"
0 0 5 @rest % 2 == 1 and ref $rest[-1] eq "CODE"
550 7 0 0 not $startup_complete and time < $deadline
564 0 0 7 $self->{'lifespan_pending'} and ${$self->{'lifespan_pending'};}
641 0 1 16 ref $pair eq "ARRAY" and @$pair == 2

or 2 conditions

line l !l condition
23 3 77 $args{'headers'} // {}
7 73 $args{'lifespan'} // 0
4 76 $args{'raise_app_exceptions'} // 0
62 75 0 $path //= "/"
77 14 0 $pair->[1] // ""
93 11 62 $opts{'body'} // ""
111 121 0 $captured{'type'} // ""
114 121 0 $captured{'type'} // ""
182 11 0 $pair->[1] // ""
223 120 0 $event->{'type'} // ""
228 59 0 $event->{'status'} // 200
229 59 0 $event->{'headers'} // []
237 35 24 $event->{'more'} // 0
261 59 0 $event->{'body'} // ""
268 1 1 $event->{'offset'} // 0
276 1 2 $event->{'offset'} // 0
350 14 0 $path //= "/"
398 0 14 $opts{'subprotocols'} // []
434 12 0 $path //= "/"
476 3 9 $opts{'method'} // "GET"
572 2 0 +(shift())->{'state'} // {}
600 22 0 $replace //= 0
657 33 0 $val // ""

or 3 conditions

line l !l&&r !l&&!r condition
115 3 0 56 exists $captured{'fh'} or exists $captured{'file'}
288 1 0 0 seek $fh, $offset, 0 or croak("Cannot seek file response '${path}': $!")
301 1 0 0 seek $fh, $offset, 0 or croak("Cannot seek filehandle response: $!")
611 0 0 0 $$headers_ref->{$name} //= $value