Branch Coverage

blib/lib/Plack/Middleware/ETag.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
23 0 8 unless defined $res->[2]
24 1 7 if Plack::Util::header_exists($headers, 'ETag')
26 1 6 if $self->check_last_modified_header and Plack::Util::header_exists($headers, 'Last-Modified')
31 1 5 if (&Plack::Util::is_real_fh($res->[2])) { }
35 0 1 if ($stats[9] == time - 1)
40 1 0 if (grep {/inode/;} @$file_attr)
43 1 0 if (grep {/mtime/;} @$file_attr)
44 1 0 if $etag and not $etag =~ /-$/
47 1 0 if (grep {/size/;} @$file_attr)
48 1 0 if $etag and not $etag =~ /-$/
65 4 2 unless $self->cache_control
67 1 1 if (ref $self->cache_control and ref $self->cache_control eq 'ARRAY') { }