blib/lib/Plack/Middleware/XRay.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 22 | 81.8 |
line | true | false | branch |
---|---|---|---|
19 | 9 | 1007 | if (ref $self->{'sampler'} eq 'CODE') { } |
26 | 4 | 1012 | if ($self->{'response_filter'}) |
37 | 2026 | 6 | unless ref $code eq 'CODE' |
39 | 0 | 6 | unless $self->{$key} |
59 | 0 | 1016 | if ($error) |
70 | 0 | 1015 | $res->[0] >= 400 ? : |
0 | 1015 | $res->[0] == 429 ? : | |
1 | 1015 | $res->[0] >= 500 ? : | |
75 | 1 | 1015 | if $status_key |
80 | 4 | 1012 | if (my $func = $self->{'response_filter'}) |
82 | 2 | 2 | if &$func($env, $res, $elapsed) |