Condition Coverage

blib/lib/PAGI/Context.pm
Criterion Covered Total %
condition 56 73 76.7


and 3 conditions

line !l l&&!r l&&r condition
261 2 3 1 $strict and not exists $params->{$name}
532 0 1 1 $t and $t->can("on_high_water")
539 0 1 1 $t and $t->can("on_drain")
724 9 0 2 builtin::blessed($r) and $r->isa("Future")
771 0 2 4 $terminal && $type eq $terminal
21 4 2 $self->{'_on_default'} and not $terminal && $type eq $terminal
0 1 2 $terminal && $type eq $terminal
22 2 1 $ENV{'PAGI_DEBUG'} and not $terminal && $type eq $terminal
775 14 4 1 builtin::blessed($r) and $r->isa("Future")
786 1 0 1 builtin::blessed($r) and $r->isa("Future")
793 0 22 25 $terminal and $type eq $terminal

or 2 conditions

line l !l condition
176 248 1 $scope->{'type'} // "http"
200 1 1 +(shift())->{'scope'}{'query_string'} // ""
201 1 1 +(shift())->{'scope'}{'scheme'} // "http"
231 7 0 $self->type // "(none)"
253 6 2 $self->{'scope'}{'path_params'} // {}
279 5 0 +(shift())->{'scope'}{'type'} // ""
280 5 0 +(shift())->{'scope'}{'type'} // ""
281 4 0 +(shift())->{'scope'}{'type'} // ""
296 12 0 $self->{'scope'}{'headers'} // []
437 10 1 $self->{'scope'}{'state'} // {}
682 36 0 $self->type // ""
752 10 26 $self->{'_on_error'} //= []
765 47 0 $event->{'type'} // ""
769 20 27 $self->{'_handlers'}{$type} // []

or 3 conditions

line l !l&&r !l&&!r condition
177 247 0 2 $class->_type_map->{$type} // $class->_type_map->{'http'}
199 1 0 2 $s->{'scope'}{'raw_path'} // $s->{'scope'}{'path'}
416 3 14 0 $self->{'_stash'} //= do { require PAGI::Stash; "PAGI::Stash"->new($self->{'scope'}) }
424 1 1 1 $self->{'_session'} //= do { require PAGI::Session; "PAGI::Session"->new($self->{'scope'}) }