Branch Coverage

blib/lib/Plack/Middleware/Cache/CHI.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
30 0 5 if ref $env eq 'CODE'
48 3 2 if ($timer_pass)
67 5 0 if ($req->method eq 'GET' or $req->method eq 'HEAD') { }
68 0 5 if ($req->headers->header('Expect')) { }
103 0 5 unless $self->rules
108 0 10 'CODE' eq ref $match ? :
4 6 if 'CODE' eq ref $match ? &$match($path) : $path =~ /$match/
119 1 4 unless defined $opts
122 0 4 if $req->param and not $self->cachequeries
128 2 2 if (defined $entry) { }
131 0 2 unless $self->valid($req, $res)
136 2 0 if $self->valid($req, $res)
149 0 2 unless $res_status == 200 or $res_status == 203 or $res_status == 300 or $res_status == 301 or $res_status == 302 or $res_status == 404 or $res_status == 410
166 0 11 unless $self->cachequeries
193 0 2 unless $self->scrub
199 2 0 if $_[0]