Condition Coverage

blib/lib/Pod/Webserver.pm
Criterion Covered Total %
condition 11 49 22.4


and 3 conditions

line !l l&&!r l&&r condition
39 0 0 17 defined $file and length $file
95 0 0 0 defined &Win32::BuildNumber and defined &Win32::BuildNumber()
126 0 0 0 $o{'p'} and not $o{'p'} =~ /^\d+$/
127 0 0 0 $o{'t'} and not $o{'t'} =~ /^\d+$/
258 1 0 0 $self->verbose >= 1 and $self->verbose <= 5
286 0 0 1 $m2p and keys %$m2p
328 0 0 1 -e $filename and -r _
0 0 1 -e $filename and -r _ and -s _

or 2 conditions

line l !l condition
22 0 0 $ENV{'PODWEBSERVERDEBUG'} || ''
123 0 0 $self->_arg_h || 0
124 0 0 $self->_arg_V || 0
158 0 0 $self->new_daemon || (return)
195 1 0 $self->httpd_port || 8020
296 1 0 $m2p || {}
370 1 0 $ENV{'PATH'} || ''
375 0 1 $$fs{"\e$path"} || 'text/html'

or 3 conditions

line l !l&&r !l&&!r condition
42 2 15 0 $type ||= $file eq '/' ? 'text/html' : ($file =~ /\.dat?/ ? 'application/octet-stream' : ($file =~ /\.html?/ ? 'text/html' : ($file =~ /\.txt/ ? 'text/plain' : ($file =~ /\.gif/ ? 'image/gif' : ($file =~ /\.jpe?g/ ? 'image/jpeg' : ($file =~ /\.png/ ? 'image/png' : 'text/plain'))))))
61 0 0 0 ref $_[0] || $_[0]
84 0 0 0 ref $_[0] || $_[0]