Branch Coverage

blib/lib/PAGI/Middleware/ConditionalGet.pm
Criterion Covered Total %
branch 23 32 71.8


line true false branch
37 0 4 if ($scope->{'type'} ne "http")
44 1 3 unless ($method eq "GET" or $method eq "HEAD")
54 0 3 unless (defined $if_none_match or defined $if_modified_since)
66 3 3 if ($event->{'type'} eq 'http.response.start') { }
3 0 elsif ($event->{'type'} eq 'http.response.body') { }
71 3 0 if ($response_status >= 200 and $response_status < 300)
78 3 0 if (defined $if_none_match and defined $etag) { }
0 0 elsif (defined $if_modified_since and defined $last_modified) { }
86 2 1 if ($not_modified)
107 2 1 if $sent_304
124 3 3 if lc $h->[0] eq $name
134 3 9 if lc $h->[0] eq $name
146 1 2 if $if_none_match eq "*"
161 1 1 if $normalized_tag eq $normalized_etag
186 0 0 unless defined $client_time and defined $server_time
202 2 2 if $allowed{lc $h->[0]}