Branch Coverage

blib/lib/POEx/HTTP/Server/Response.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
26 4 63 if (@_)
36 20 62 if (@_)
45 0 15 unless ($$self{'__done'})
70 0 14 unless $$self{'__respond'}
79 10 21 if $self->headers_sent
82 19 2 unless ($self->protocol)
86 19 2 unless ($self->header('Date'))
90 15 6 if (not defined $self->header('Content-Length') || $self->streaming and $req->method ne 'HEAD')
94 13 2 if (defined $c and $c ne '')
107 0 0 unless defined $self->content_type
124 3 0 $self->request->uri ? :
126 0 3 unless (-f $file)
130 0 3 unless (-r $file)
142 0 3 unless (defined $self->content_type)
149 1 2 if ($self->request->method eq 'HEAD' and $size)
158 1 1 if ($since)
160 1 0 if ($lastmod and $since and $since >= $lastmod)