Branch Coverage

File:lib/OpenAPI.pm
Coverage:76.8%

line%coveragebranch
8450TFif (not $Importer)
10150TFif ($db_state and $db_state =~ /^(?:08|57)/)
116100TFif ($charset =~ /^guess(?:ing)?$/i)
128100TFif (ref $decoder)
13750TFif (not $charset)
149100TFif (not $offset =~ /^\d+$/)
156100TFif (not defined $limit)
159100TFif (not defined $limit) { }
163100TFif (not $limit =~ /^\d+$/)
16650TFif ($limit > $MAX_SELECT_LIMIT)
184100TFif ($url =~ s/$Ext$//) { }
192100TFif ($http_meth eq 'POST') { }
100TFelsif ($http_meth eq 'PUT') { }
19750TFif (not defined $req_data) { }
1980TFunless $req_data = $cgi->param('data')
20150TFif (length $req_data > $POST_LEN_LIMIT)
20950TFif (not defined $req_data) { }
2100TFunless $req_data = $cgi->param('data')
21350TFif (length $req_data > $POST_LEN_LIMIT)
219100TFif ($http_meth eq 'POST' and $url =~ s[^=/put/][=/]) { }
100TFelsif ($http_meth =~ /^(?:GET|POST)$/ and $url =~ s[^=/delete/][=/]) { }
100TFelsif ($http_meth eq 'GET' and $url =~ s[^=/(post|put)/][=/]) { }
236100TFif ($req_data)
26950TFif ($$self{'_no_response'})
274100TFif ($cookie_data)
28450TF$as_html ? :
287100TFif (my $bin_data = $$self{'_bin_data'})
289100TF$type =~ /text/ ? :
50TF@cookies ? :
293100TFif (my $callback = $$self{'_callback'}) { }
301100TFif ($$self{'_error'}) { }
50TFelsif ($$self{'_data'}) { }
305100TFif ($$self{'_warning'})
321100TFif (my $var = $$self{'_var'} and $Dumper eq \&JSON::Syck::Dump) { }
100TFelsif (my $callback = $$self{'_callback'} and $Dumper eq \&JSON::Syck::Dump) { }
32850TFif ($as_html)
332100TFif ($$self{'_http_method'} =~ /^(?:PUT|POST)$/)
33350TFlength $str > 1024 ? :
33950TF$type =~ /text/ ? :
100TF@cookies ? :
383100TFdefined $_[0] && $_[0] =~ /^[A-Za-z]\w*$/ ? :