Condition Coverage

blib/lib/PAGI/SSE.pm
Criterion Covered Total %
condition 49 94 52.1


and 3 conditions

line !l l&&!r l&&r condition
17 1 0 107 $scope and ref $scope eq "HASH"
19 1 0 106 $receive and ref $receive eq "CODE"
21 1 0 105 $send and ref $send eq "CODE"
204 0 1 1 $t and $t->can("on_high_water")
211 0 1 1 $t and $t->can("on_drain")
237 20 11 1 $self->{'_closed_future'} and not $self->{'_closed_future'}->is_ready
488 4 0 2 builtin::blessed($r) and $r->isa("Future")
544 12 1 3 builtin::blessed($r) and $r->isa("Future")
659 0 0 1 defined $interval and $interval > 0
695 0 0 0 $sleep_future->can("cancel") and not $sleep_future->is_ready
701 0 0 0 $disconnect_future->can("cancel") and not $disconnect_future->is_ready
716 0 0 0 $weak_self and not $weak_self->is_closed

or 2 conditions

line l !l condition
24 105 0 $scope->{'type'} // ""
50 2 0 +(shift())->{'scope'}{'path'} // "/"
51 0 0 ($s->{'scope'}{'raw_path'} // $s->{'scope'}{'path'}) // "/"
52 5 0 +(shift())->{'scope'}{'query_string'} // ""
76 0 6 delete $opts{'strict'} // 0
77 2 4 delete $opts{'raw'} // 0
89 6 0 $key //= ""
90 6 0 $val //= ""
125 1 0 +(shift())->{'scope'}{'scheme'} // "http"
126 1 0 +(shift())->{'scope'}{'http_version'} // "1.1"
134 2 2 $self->{'scope'}{'state'} // {}
141 1 1 $self->{'scope'}{'path_params'} // {}
146 5 1 $self->{'scope'}{'path_params'} // {}
249 2 52 $opts{'status'} // 200
278 9 0 $self->{'scope'}{'headers'} // []
292 2 0 $self->{'scope'}{'headers'} // []
458 2 0 $opts{'data'} // ""
539 22 0 $self->{'_disconnect_reason'} // "unknown"
565 3 8 $opts{'reason'} // "app_closed"
600 11 0 $event->{'type'} // ""
603 0 11 $event->{'reason'} // "client_closed"
720 0 0 $event->{'type'} // ""
723 0 0 $event->{'reason'} // "client_closed"

or 3 conditions

line l !l&&r !l&&!r condition
51 0 0 0 $s->{'scope'}{'raw_path'} // $s->{'scope'}{'path'}
245 2 0 54 $self->is_started or $self->is_closed
565 0 11 0 $self->{'_disconnect_reason'} //= $opts{'reason'} // "app_closed"
589 0 13 0 $self->{'_closed_future'} //= "Future"->new