Branch Coverage

lib/Test/Fake/HTTPD.pm
Criterion Covered Total %
branch 3 28 10.7


line true false branch
62 0 1 $self->{'daemon_args'} && ref $self->{'daemon_args'} eq 'HASH' ? :
77 0 0 $self->_is_win32 ? :
0 0 if $d = $self->_daemon_class->new('LocalAddr', '127.0.0.1', 'LocalPort', $port, 'Timeout', $self->{'timeout'}, 'Proto', 'tcp', 'Listen', $self->{'listen'}, $self->_is_win32 ? () : ('ReuseAddr', 1), %extra_daemon_args)
83 0 0 unless $d
96 0 1 $self->{'port'} ? :
110 4 0 $self->{'server'} ? :
128 0 0 unless ref $res eq 'ARRAY'
129 0 0 unless @$res == 3
130 0 0 unless $res->[0] and $res->[0] =~ /^\d{3}$/
131 0 0 unless ref $res->[1] eq 'ARRAY' or ref $res->[1] eq 'HASH'
139 0 0 if (&blessed($res) and $res->isa('HTTP::Response')) { }
0 0 elsif (&blessed($res) and $res->isa('Plack::Response')) { }
0 0 elsif ($self->_is_psgi_res($res)) { }
149 0 0 unless $http_res