Condition Coverage

blib/lib/CGI/Snapp/Dispatch.pm
Criterion Covered Total %
condition 32 50 64.0


and 3 conditions

line !l l&&!r l&&r condition
33 2 0 0 $#args > 0 and $#args % 2 != 1
50 2 0 0 $$named_args{'rm'} and not $$named_args{'rm'} =~ /^([a-zA-Z_][\w\']+)$/
111 4 24 0 $#args > 0 and $#args % 2 != 1
131 2 21 1 $$named_args{'rm'} and not $$named_args{'rm'} =~ /^([a-zA-Z_][\w\']+)$/
430 0 0 1 -f $s and open INX, '<', $s

or 2 conditions

line l !l condition
194 2 4 $error_document ||= ''
226 0 6 local $ENV{'SERVER_ADMIN'} ||= ''
227 0 6 local $ENV{'SERVER_SIGNATURE'} ||= ''
266 0 31 $$arg{'logger'} ||= ''
267 6 25 $$arg{'return_type'} ||= 0
559 4 18 $http_method ||= ''
597 13 5 $$args{'prefix'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
38 0 0 2 not $$args{'table'} or ref $$args{'table'} ne 'ARRAY'
85 0 1 26 not defined $path_info or length $path_info == 0
89 0 1 26 not defined $path_info or $path_info eq '/'
90 0 2 25 not defined $path_info or length $path_info == 0
116 0 0 28 not $$args{'table'} or ref $$args{'table'} ne 'ARRAY'
127 0 2 23 $ENV{'HTTP_REQUEST_METHOD'} || $ENV{'REQUEST_METHOD'}
597 4 13 5 $prefix ||= $$args{'prefix'} || ''