Branch Coverage

blib/lib/Plack/Middleware/OpenTelemetry.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
41 1 18 if (my $a = $self->resource_attributes)
62 1 18 $resource ? :
1 18 $url->query ? :
78 1 18 if ($@)
83 17 1 if (ref $res and ref $res eq "ARRAY")
99 0 1 if (defined $content_length)
109 1 2 unless (defined $chunk)
129 0 18 unless my $status_code = $res->[0]
131 2 16 if ($status_code >= 400 and $self->include_client_errors or $status_code >= 500)