Branch Coverage

blib/lib/Plack/Middleware/Recorder.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
23 25 2 unless defined $self->active
24 24 3 unless defined $self->start_url
25 24 3 unless defined $self->stop_url
28 1 26 unless defined $output
30 0 26 if (ref $output) { }
34 0 26 unless (-w $output)
43 25 11 unless ($self->{'output_fh'})
44 20 5 $env->{'psgi.run_once'} ? :
93 4 54 if ($path =~ /\Q$start_url\E/) { }
7 47 elsif ($path =~ /\Q$stop_url\E/) { }
36 11 elsif ($self->active) { }
117 36 0 if ($guard)
131 34 1 unless $env->{'psgi.multithread'} or $env->{'psgi.multiprocess'}
133 0 2 unless flock $fh, 2
135 0 2 unless ($locked)
136 0 0 if (my $log = $env->{'psgix.logger'})