Branch Coverage

blib/lib/Plack/Middleware/StatsPerRequest.pm
Criterion Covered Total %
branch 21 22 95.4


line true false branch
23 8 1 unless $self->app_name
24 8 1 unless $self->metric_name
25 7 2 unless $self->path_cleanups
26 7 2 unless defined $self->long_request
29 2 16 if ($val and ref $val ne 'ARRAY')
53 15 2 if $elapsed < 0.0001
66 4 13 if (my $headers_to_add = $self->add_headers)
73 4 13 if (my $has_headers = $self->has_headers)
76 6 2 $req->header($header) ? :
84 1 16 if ($self->long_request and $elapsed > $self->long_request)
90 0 17 if ($@)