blib/lib/Plack/Middleware/XRay.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 19 | 24 | 79.1 |
line | true | false | branch |
---|---|---|---|
19 | 9 | 1007 | if (ref $self->{'sampler'} eq 'CODE') { } |
26 | 4 | 1012 | if ($self->{'response_filter'}) |
30 | 0 | 1016 | if (ref $self->{'plugins'} eq 'ARRAY') |
41 | 2026 | 6 | unless ref $code eq 'CODE' |
43 | 0 | 6 | unless $self->{$key} |
63 | 0 | 1016 | if ($error) |
74 | 0 | 1015 | $res->[0] >= 400 ? : |
0 | 1015 | $res->[0] == 429 ? : | |
1 | 1015 | $res->[0] >= 500 ? : | |
79 | 1 | 1015 | if $status_key |
84 | 4 | 1012 | if (my $func = $self->{'response_filter'}) |
86 | 2 | 2 | if &$func($env, $res, $elapsed) |