blib/lib/Plack/Middleware/LogStderr.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 22 | 26 | 84.6 |
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' |