Branch Coverage

blib/lib/Plack/Middleware/LogStderr.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
20 22 36 if ($self->$cb)
21 12 10 unless (__isa_coderef($self->$cb))
32 1 6 unless $logger
44 4 2 unless $self->no_tie
50 0 6 if $@
52 4 2 unless $self->no_tie
55 0 6 if ($err)
60 6 0 if ($stderr)
70 9 9 if $self->callback
71 18 0 if ($extra_cb)
72 6 12 if ($extra_cb eq 'tie' and $self->tie_callback)
75 3 15 if ($extra_cb eq 'capture' and $self->capture_callback)
94 12 10 unless ref $_[0] eq 'CODE' or (&Scalar::Util::reftype($_[0]) || '') eq 'CODE'
122 0 0 if (warnings::enabled())
129 0 0 if (warnings::enabled())