Condition Coverage

blib/lib/PAGI/SSE.pm
Criterion Covered Total %
condition 32 76 42.1


and 3 conditions

line !l l&&!r l&&r condition
16 1 0 49 $scope and ref $scope eq "HASH"
18 1 0 48 $receive and ref $receive eq "CODE"
20 1 0 47 $send and ref $send eq "CODE"
450 7 0 1 builtin::blessed($r) and $r->isa("Future")
539 0 0 1 defined $interval and $interval > 0
575 0 0 0 $sleep_future->can("cancel") and not $sleep_future->is_ready
581 0 0 0 $disconnect_future->can("cancel") and not $disconnect_future->is_ready
596 0 0 0 $weak_self and not $weak_self->is_closed

or 2 conditions

line l !l condition
23 47 0 $scope->{'type'} // ""
49 1 0 +(shift())->{'scope'}{'path'} // "/"
50 0 0 ($s->{'scope'}{'raw_path'} // $s->{'scope'}{'path'}) // "/"
51 1 0 +(shift())->{'scope'}{'query_string'} // ""
75 0 0 delete $opts{'strict'} // 0
76 0 0 delete $opts{'raw'} // 0
88 0 0 $key //= ""
89 0 0 $val //= ""
124 1 0 +(shift())->{'scope'}{'scheme'} // "http"
125 0 0 +(shift())->{'scope'}{'http_version'} // "1.1"
133 4 4 $self->{'scope'}{'pagi.stash'} //= {}
139 3 2 $self->{'scope'}{'state'} // {}
146 1 1 $self->{'scope'}{'path_params'} // {}
151 4 1 $self->{'scope'}{'path_params'} // {}
195 1 21 $opts{'status'} // 200
224 8 0 $self->{'scope'}{'headers'} // []
238 1 0 $self->{'scope'}{'headers'} // []
401 1 0 $opts{'data'} // ""
445 5 1 $self->{'_disconnect_reason'} // "unknown"
480 5 0 $event->{'type'} // ""
483 0 5 $event->{'reason'} // "client_closed"
600 0 0 $event->{'type'} // ""
603 0 0 $event->{'reason'} // "client_closed"

or 3 conditions

line l !l&&r !l&&!r condition
50 0 0 0 $s->{'scope'}{'raw_path'} // $s->{'scope'}{'path'}
191 2 0 22 $self->is_started or $self->is_closed