Condition Coverage

blib/lib/PAGI/SSE.pm
Criterion Covered Total %
condition 39 77 50.6


and 3 conditions

line !l l&&!r l&&r condition
16 1 0 90 $scope and ref $scope eq "HASH"
18 1 0 89 $receive and ref $receive eq "CODE"
20 1 0 88 $send and ref $send eq "CODE"
428 4 0 2 builtin::blessed($r) and $r->isa("Future")
484 11 1 1 builtin::blessed($r) and $r->isa("Future")
582 0 0 1 defined $interval and $interval > 0
618 0 0 0 $sleep_future->can("cancel") and not $sleep_future->is_ready
624 0 0 0 $disconnect_future->can("cancel") and not $disconnect_future->is_ready
639 0 0 0 $weak_self and not $weak_self->is_closed

or 2 conditions

line l !l condition
23 88 0 $scope->{'type'} // ""
49 2 0 +(shift())->{'scope'}{'path'} // "/"
50 0 0 ($s->{'scope'}{'raw_path'} // $s->{'scope'}{'path'}) // "/"
51 5 0 +(shift())->{'scope'}{'query_string'} // ""
75 0 6 delete $opts{'strict'} // 0
76 2 4 delete $opts{'raw'} // 0
88 6 0 $key //= ""
89 6 0 $val //= ""
124 1 0 +(shift())->{'scope'}{'scheme'} // "http"
125 1 0 +(shift())->{'scope'}{'http_version'} // "1.1"
133 2 2 $self->{'scope'}{'state'} // {}
140 1 1 $self->{'scope'}{'path_params'} // {}
145 5 1 $self->{'scope'}{'path_params'} // {}
189 2 43 $opts{'status'} // 200
218 9 0 $self->{'scope'}{'headers'} // []
232 2 0 $self->{'scope'}{'headers'} // []
398 2 0 $opts{'data'} // ""
479 11 3 $self->{'_disconnect_reason'} // "unknown"
523 11 0 $event->{'type'} // ""
526 0 11 $event->{'reason'} // "client_closed"
643 0 0 $event->{'type'} // ""
646 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'}
185 2 0 45 $self->is_started or $self->is_closed