Branch Coverage

blib/lib/Plack/Middleware/ErrorDocument.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
19 6 4 unless (&is_error($r->[0]) and exists $$self{$r->[0]})
24 2 2 if ($self->subrequest) { }
26 26 18 unless ($key =~ /^psgi/)
39 2 0 if ($sub_r->[0] == 200)
41 1 1 if (@$r == 3) { }
52 1 1 if ($returned)
53 0 1 defined $_[0] ? :
68 0 2 unless open my $fh, "<", $path
69 1 1 if ($r->[2]) { }
74 1 1 unless ($done)
78 0 1 defined $_[0] ? :