Branch Coverage

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


line true false branch
25 0 8 unless defined $$res[2]
26 1 7 if Plack::Util::header_exists($headers, 'ETag')
28 1 6 if $self->check_last_modified_header and Plack::Util::header_exists($headers, 'Last-Modified')
33 1 5 if (&Plack::Util::is_real_fh($$res[2])) { }
37 0 1 if ($stats[9] == time - 1)
43 1 0 if (grep {/inode/;} @$file_attr)
46 1 0 if (grep {/mtime/;} @$file_attr)
47 1 0 if $etag and not $etag =~ /-$/
50 1 0 if (grep {/size/;} @$file_attr)
51 1 0 if $etag and not $etag =~ /-$/
68 4 2 unless $self->cache_control
70 1 1 if (ref $self->cache_control and ref $self->cache_control eq 'ARRAY') { }