Branch Coverage

lib/Test/Fake/HTTPD.pm
Criterion Covered Total %
branch 5 36 13.8


line true false branch
68 0 1 $self->{'daemon_args'} && ref $self->{'daemon_args'} eq 'HASH' ? :
85 0 0 $self->host ? :
0 0 $self->_is_win32 ? :
0 0 if $d = $self->_daemon_class->new($self->host ? ('LocalAddr', $self->host) : (), 'LocalPort', $port, 'Timeout', $self->{'timeout'}, 'Proto', 'tcp', 'Listen', $self->{'listen'}, $self->_is_win32 ? () : ('ReuseAddr', 1), %extra_daemon_args)
91 0 0 $@ eq '' ? :
0 0 unless $d
107 1 0 $self->host ? :
0 1 $self->{'port'} ? :
126 4 0 $self->{'server'} ? :
138 0 3 if not defined $host or $host eq '' or $host eq '0.0.0.0' or $host eq '::'
148 0 0 unless ref $res eq 'ARRAY'
149 0 0 unless @$res == 3
150 0 0 unless $res->[0] and $res->[0] =~ /^\d{3}$/
151 0 0 unless ref $res->[1] eq 'ARRAY' or ref $res->[1] eq 'HASH'
159 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)) { }
169 0 0 unless $http_res