Branch Coverage

lib/CGI/Minimal.pm
Criterion Covered Total %
branch 70 102 68.6


line true false branch
53 1 8 if ($flags{':preload'})
66 1303 1 if ($CGI::Minimal::form_initial_read)
71 6 1298 if (1 == $CGI::Minimal::_mod_perl) { }
0 1298 elsif (2 == $CGI::Minimal::_mod_perl) { }
105 0 0 if (2 == $CGI::Minimal::_mod_perl)
113 526 0 if (@_ > 0) { }
143 254 127 if ($tagged_names{$parm}) { }
159 129 6037 if (1 < @_) { }
1 7448 elsif (1 == @_ and ref $_[0] eq 'HASH') { }
161 1 128 if ($n_parms % 2 == 1)
182 1412 4624 if ($#_ == -1) { }
187 4620 4 if (defined $vars->{'field'}{$fname})
192 1416 4620 if (wantarray) { }
4616 4 elsif ($#result > -1) { }
200 4 4 unless defined $CGI::Minimal::_BUFFER
231 0 1303 if (2 == $CGI::Minimal::_mod_perl and not defined $req_method)
235 1 1302 unless (defined $req_method)
237 0 1 unless defined $input
243 1270 32 if ($req_method eq 'POST') { }
32 0 elsif ($req_method eq 'GET' or $req_method eq 'HEAD') { }
245 512 758 if ($CGI::Minimal::_allow_hybrid_post_get)
267 0 1270 if (2 == $CGI::Minimal::_mod_perl)
273 0 1270 if (2 == $CGI::Minimal::_mod_perl and not defined $clen)
276 1258 12 if ($clen < $read_length)
282 1264 6 if ($read_length)
283 0 1264 if (2 == $CGI::Minimal::_mod_perl) { }
290 512 758 $read_bytes < $clen ? :
292 1261 9 defined $ENV{'CONTENT_TYPE'} ? :
293 0 1270 if (not $content_type and 2 == $CGI::Minimal::_mod_perl)
300 1252 18 if ($content_type =~ m[^multipart/form-data; boundary=(.*)$]i) { }
318 5 540 if (1 == $CGI::Minimal::_mod_perl) { }
0 540 elsif (2 == $CGI::Minimal::_mod_perl) { }
324 0 0 unless (exists $ENV{'REQUEST_METHOD'} or $CGI::Minimal::_no_subprocess_env)
327 0 0 unless $req_method
329 537 3 if defined $ENV{'QUERY_STRING'}
331 33 512 if ($req_method ne 'POST')
352 293 270 $buffer ? :
357 12 655 unless defined $name
360 12 0 defined $1 ? :
361 12 655 unless defined $data
364 12 0 defined $1 ? :
366 381 286 unless (defined $vars->{'field'}{$name}{'count'})
385 0 0 if $] >= 5.006
387 0 0 if ($c < 128) { }
0 0 elsif ($c < 2048) { }
0 0 elsif ($c < 65536) { }
0 0 elsif ($c < 2097152) { }
0 0 elsif ($c < 67108864) { }
0 0 elsif ($c < 2147483648) { }
429 1 100 unless defined $s
442 1 256 unless defined $s