Condition Coverage

blib/lib/Net/HTTP/Knork/Request.pm
Criterion Covered Total %
condition 12 32 37.5


and 2 conditions

line l !l condition
162 0 0 $query_string and scalar @params

and 3 conditions

line !l l&&!r l&&r condition
56 0 0 8 @_ == 1 and not exists $_[0]{'env'}
127 0 8 0 defined $path_info and defined $query_string
137 0 8 0 defined $query_string and length $query_string > 0
160 0 0 0 $path and $path =~ s/\:$key/$value/
249 0 0 3 $path_info and $path_info =~ s/\:$k/$v/

or 2 conditions

line l !l condition
135 8 0 $path_info // ''
174 8 0 $$env{'spore.url_scheme'} || 'http'
0 8 $$env{'SCRIPT_NAME'} || '/'
239 3 5 $self->env->{'spore.params'} || []
246 3 0 $$params[++$i] // ''
289 0 8 $query_string || ''

or 3 conditions

line l !l&&r !l&&!r condition
174 0 8 0 $$env{'HTTP_HOST'} || ($$env{'SERVER_NAME'} || '') . ':' . ($$env{'SERVER_PORT'} || 80)