Branch Coverage

blib/lib/Plack/Middleware/ESI.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
20 1 0 if ($ct =~ m[^text/] or $ct =~ m[^application/xh?t?ml\b])
23 1 5 unless defined $chunk
33 0 5 unless $chunk =~ /$chk_rx/
51 3 0 if ($url =~ m[^/]) { }
56 0 0 unless $path =~ m[/$]
64 3 1 unless ($url =~ m[^https?://])
69 3 1 if ($url ne $expanded_url)
71 3 0 unless defined $httpreq->uri->scheme
72 3 0 unless defined $httpreq->uri->host
76 2 1 if $resp->code == 200
78 2 2 unless ($content)
80 1 1 if ($resp->code == 200) { }
0 1 elsif ($r->logger) { }
88 0 4 if ($@)
89 0 0 if ($r->logger)
98 1 1 if $$self{'_ua'}