Branch Coverage

blib/lib/Trickster.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
68 0 0 if $logger
98 21 1 if ($match) { }
105 13 7 if (builtin::blessed($result) and $result->isa('Plack::Response') || $result->isa('Trickster::Response')) { }
0 7 elsif (ref $result eq 'ARRAY') { }
7 0 elsif (defined $result) { }
112 7 0 if $res->status == 404
123 0 22 if $psgi_response
125 1 21 if ($@)
131 1 0 if (builtin::blessed($error) and $error->isa("Trickster::Exception"))
132 0 1 if ($self->{'error_handler'})
139 1 0 if ($req->header("Accept") and $req->header("Accept") =~ m[application/json]u)
152 0 0 if ($self->{'error_handler'})
160 0 0 if ($self->{'debug'}) { }