Branch Coverage

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


line true false branch
75 10 3 unless defined $self->with_request
76 10 3 unless defined $self->with_response
77 6 7 unless defined $self->with_date
78 1 12 unless defined $self->with_body
79 12 1 unless defined $self->with_all_chunks
80 1 10 defined $self->eol ? :
11 2 unless defined $self->body_eol
81 10 3 unless defined $self->eol
97 25 0 defined $env->{'REMOTE_PORT'} ? :
101 25 0 if defined $body_eol
103 15 10 $self->with_date ? :
108 13 0 $type eq 'Response' ? :
12 13 $type eq 'Request ' ? :
135 11 1 $self->with_body ? :
148 12 1 defined $status_message ? :
151 12 1 if ($self->with_body)
153 0 12 unless defined $body
154 12 0 if ref $body eq "ARRAY"
167 13 0 &Scalar::Util::looks_like_number($env->{'REMOTE_PORT'}) ? :
174 12 1 if $self->with_request
188 11 14 if $seen and not defined $chunk
189 1 13 if $seen and not $self->with_all_chunks
196 12 1 $self->with_response ? :