Condition Coverage

blib/lib/HTTP/Server/Simple.pm
Criterion Covered Total %
condition 7 31 22.5


and 3 conditions

line !l l&&!r l&&r condition
439 0 0 0 $proto =~ m[HTTP/(\d(\.\d)?)$] and $1 >= 1

or 2 conditions

line l !l condition
147 7 1 $port || '8080'
148 6 2 $family || 2
169 0 0 $local_host || 'localhost'
420 0 0 $proto ||= 'HTTP/0.9'
655 0 0 $1 || ''
656 0 0 $2 || ''
657 0 0 $3 || ''
732 0 0 $self->host || '*'

or 3 conditions

line l !l&&r !l&&!r condition
138 0 11 0 ref $proto || $proto
173 0 0 0 $local_addr || ($local_family == 10 ? '::1' : '127.0.0.1')
208 5 3 0 $_[0] == 2 or $_[0] == 10
409 0 0 0 $addr || $loopback