Condition Coverage

lib/Mock/Apache.pm
Criterion Covered Total %
condition 18 38 47.3


and 3 conditions

line !l l&&!r l&&r condition
105 0 11 1 $config and my(@dirs) = $config->find_down_directive_names($directive)
125 0 1 3 ref $client and $client->isa('Apache')
129 0 0 4 ref $client and $client->isa('Mock::Apache::RemoteClient')

or 2 conditions

line l !l condition
88 0 4 $params{'server_port'} ||= 80
91 0 4 getgrnam 'apache' || 48
92 0 4 getpwnam 'apache' || 48
167 4 0 $request->status_line || ''

or 3 conditions

line l !l&&r !l&&!r condition
85 0 4 0 $params{'document_root'} ||= _get_config_value($cfg, 'DocumentRoot', $DEFAULT_DOCUMENT_ROOT)
86 0 4 0 $params{'server_root'} ||= _get_config_value($cfg, 'ServerRoot', $DEFAULT_SERVER_ROOT)
87 1 3 0 $params{'server_hostname'} ||= $DEFAULT_HOSTNAME
89 0 4 0 $params{'server_admin'} ||= _get_config_value($cfg, 'ServerAdmin', $DEFAULT_ADMIN . '@' . $params{'server_hostname'})
91 0 4 0 $params{'gid'} ||= getgrnam 'apache' || 48
92 0 4 0 $params{'uid'} ||= getpwnam 'apache' || 48
137 3 1 0 $request ||= $client->new_request(@_)