Branch Coverage

blib/lib/Plack/Middleware/TrafficLog.pm
Criterion Covered Total %
branch 40 46 86.9


line true false branch
71 10 3 unless defined $self->with_request
72 10 3 unless defined $self->with_response
73 6 7 unless defined $self->with_date
74 1 12 unless defined $self->with_body
75 12 1 unless defined $self->with_all_chunks
76 1 10 defined $self->eol ? :
11 2 unless defined $self->body_eol
77 10 3 unless defined $self->eol
93 25 0 defined $env->{'REMOTE_PORT'} ? :
97 25 0 if defined $body_eol
99 15 10 $self->with_date ? :
103 13 0 $type eq 'Response' ? :
12 13 $type eq 'Request ' ? :
130 11 1 $self->with_body ? :
144 12 1 defined $status_message ? :
147 12 1 if ($self->with_body)
149 0 12 unless defined $body
150 12 0 if ref $body eq 'ARRAY'
162 13 0 &Scalar::Util::looks_like_number($env->{'REMOTE_PORT'}) ? :
167 12 1 if $self->with_request
178 11 14 if $seen and not defined $chunk
179 1 13 if $seen and not $self->with_all_chunks
184 12 1 $self->with_response ? :