Branch Coverage

blib/lib/PAGI/Context.pm
Criterion Covered Total %
branch 36 38 94.7


line true false branch
224 2 4 exists $opts{'strict'} ? :
227 1 5 if ($strict and not exists $params->{$name})
229 1 0 @available ? :
263 10 15 if (lc $pair->[0] eq $name)
362 1 1 exists $self->{'scope'}{'pagi.session'} ? :
390 2 4 unless $conn
402 1 2 unless $conn
409 0 1 unless $conn
557 2 8 if (builtin::blessed($r) and $r->isa("Future"))
561 2 9 if ($@)
566 4 8 if (not @{$self->{'_on_error'};})
577 1 32 if $self->{'_running'}
588 9 40 if (my $err = $@)
600 19 21 if (@handlers) { }
1 38 elsif ($ENV{'PAGI_DEBUG'} and not $terminal && $type eq $terminal) { }
604 1 17 if (builtin::blessed($r) and $r->isa("Future"))
608 3 18 if (my $err = $@)
616 21 19 if ($terminal and $type eq $terminal)
622 2 30 if $self->{'_stopped'} and $reason eq "stop"