Condition Coverage

blib/lib/PAGI/Context.pm
Criterion Covered Total %
condition 46 59 77.9


and 3 conditions

line !l l&&!r l&&r condition
227 2 3 1 $strict and not exists $params->{$name}
557 8 0 2 builtin::blessed($r) and $r->isa("Future")
600 0 1 2 $terminal && $type eq $terminal
18 2 1 $ENV{'PAGI_DEBUG'} and not $terminal && $type eq $terminal
604 13 4 1 builtin::blessed($r) and $r->isa("Future")
616 0 19 21 $terminal and $type eq $terminal
622 30 0 2 $self->{'_stopped'} and $reason eq "stop"

or 2 conditions

line l !l condition
172 180 1 $scope->{'type'} // "http"
196 1 1 +(shift())->{'scope'}{'query_string'} // ""
197 1 1 +(shift())->{'scope'}{'scheme'} // "http"
219 6 2 $self->{'scope'}{'path_params'} // {}
245 5 0 +(shift())->{'scope'}{'type'} // ""
246 5 0 +(shift())->{'scope'}{'type'} // ""
247 4 0 +(shift())->{'scope'}{'type'} // ""
262 12 0 $self->{'scope'}{'headers'} // []
367 10 1 $self->{'scope'}{'state'} // {}
523 32 0 $self->type // ""
581 9 23 $self->{'_on_error'} //= []
594 40 0 $event->{'type'} // ""
598 19 21 $self->{'_handlers'}{$type} // []

or 3 conditions

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