Condition Coverage

blib/lib/PAGI/SSE.pm
Criterion Covered Total %
condition 43 83 51.8


and 3 conditions

line !l l&&!r l&&r condition
17 1 0 97 $scope and ref $scope eq "HASH"
19 1 0 96 $receive and ref $receive eq "CODE"
21 1 0 95 $send and ref $send eq "CODE"
195 0 1 1 $t and $t->can("on_high_water")
202 0 1 1 $t and $t->can("on_drain")
474 4 0 2 builtin::blessed($r) and $r->isa("Future")
530 11 1 1 builtin::blessed($r) and $r->isa("Future")
628 0 0 1 defined $interval and $interval > 0
664 0 0 0 $sleep_future->can("cancel") and not $sleep_future->is_ready
670 0 0 0 $disconnect_future->can("cancel") and not $disconnect_future->is_ready
685 0 0 0 $weak_self and not $weak_self->is_closed

or 2 conditions

line l !l condition
24 95 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'} // {}
235 2 43 $opts{'status'} // 200
264 9 0 $self->{'scope'}{'headers'} // []
278 2 0 $self->{'scope'}{'headers'} // []
444 2 0 $opts{'data'} // ""
525 11 3 $self->{'_disconnect_reason'} // "unknown"
569 11 0 $event->{'type'} // ""
572 0 11 $event->{'reason'} // "client_closed"
689 0 0 $event->{'type'} // ""
692 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'}
231 2 0 45 $self->is_started or $self->is_closed