Branch Coverage

blib/lib/HTTP/Engine/ResponseFinalizer.pm
Criterion Covered Total %
branch 11 22 50.0


line true false branch
10 0 6 unless $res
13 0 6 unless $res->protocol
16 6 0 if ($res->body) { }
18 0 6 if (&Scalar::Util::blessed(scalar $res->body) and $res->body->can('read') or ref $res->body eq 'GLOB') { }
20 0 0 if (my $size = eval { do { (stat $res->body)[$st_size] } }) { }
34 0 6 if ($res->status =~ /^(1\d\d|[23]04)$/)
39 6 0 unless $res->content_type
45 0 6 if ($res->protocol and $res->protocol =~ /1\.1/ and not !!$res->header('Connection'))
49 0 6 if defined $req->method and $req->method eq 'HEAD'
57 1 5 if (@keys)
69 0 1 &Scalar::Util::blessed($val) ? :