| line |
true |
false |
branch |
|
63
|
0 |
5 |
unless ($self->{'enabled'}) |
|
83
|
1 |
3 |
if ($event->{'type'} eq 'http.response.start') { } |
|
|
3 |
0 |
elsif ($event->{'type'} eq 'http.response.body') { } |
|
|
0 |
0 |
elsif ($event->{'type'} eq 'websocket.accept') { } |
|
|
0 |
0 |
elsif ($event->{'type'} eq 'sse.start') { } |
|
84
|
0 |
1 |
if ($response_started) |
|
90
|
2 |
1 |
unless ($response_started) |
|
93
|
0 |
2 |
if ($response_finished) |
|
97
|
2 |
0 |
unless ($event->{'more'}) |
|
102
|
0 |
0 |
if ($scope->{'type'} ne "websocket") |
|
106
|
0 |
0 |
if ($scope->{'type'} ne "sse") |
|
120
|
2 |
3 |
if ($err) |
|
122
|
2 |
0 |
if ($scope->{'type'} eq 'http' and not $response_started) { } |
|
|
0 |
0 |
elsif ($scope->{'type'} eq 'http' and $response_started and not $response_finished) { } |
|
131
|
3 |
0 |
if ($scope->{'type'} eq "http") |
|
132
|
2 |
1 |
unless ($response_started) |
|
140
|
0 |
3 |
if ($response_started and not $response_finished) |
|
154
|
0 |
5 |
unless (defined $scope->{'type'}) |
|
158
|
5 |
0 |
if ($scope->{'type'} eq "http") |
|
161
|
0 |
15 |
unless (defined $scope->{$key}) |
|
167
|
5 |
0 |
if (exists $scope->{'headers'}) |
|
168
|
5 |
0 |
if (ref $scope->{'headers'} eq 'ARRAY') { } |
|
172
|
0 |
0 |
unless (ref $h eq "ARRAY" and @$h == 2) |
|
176
|
0 |
0 |
if ($h->[0] =~ /[A-Z]/) |
|
188
|
0 |
4 |
unless (ref $event eq "HASH") |
|
193
|
0 |
4 |
unless (defined $event->{'type'}) |
|
201
|
1 |
0 |
defined $event->{'status'} ? : |
|
207
|
1 |
0 |
if (exists $event->{'headers'}) |
|
208
|
1 |
0 |
if (ref $event->{'headers'} eq 'ARRAY') { } |
|
212
|
0 |
0 |
unless (ref $h eq "ARRAY" and @$h == 2) |
|
230
|
1 |
3 |
if ($self->{'strict'}) |
|
234
|
3 |
0 |
if ($self->{'on_warning'}) { } |