| blib/lib/YATT/Lite/Connection.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 56 | 33.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 101 | 0 | 0 | 0 | do { $prop->{'cf_encoding'} } && do { binmode $_[0], ":encoding($prop->{'cf_encoding'})" } |
| 216 | 0 | 2 | 2 | @err and ref $err[0] eq 'HASH' |
| 297 | 1 | 0 | 0 | $prop->{'cf_debug'} and my $errfh = $glob->error_fh |
| 303 | 241 | 0 | 0 | $prop->{'cf_debug'} and my $errfh = $glob->error_fh |
| 314 | 0 | 0 | 0 | $parent and my $sub = $parent->can('header_was_sent') |
| 377 | 0 | 0 | 0 | @_ == 1 and ref $_[0] |
| 423 | 0 | 0 | 27 | $ct =~ m[^text/] and not $ct =~ /;\s*charset/ |
| line | l | !l | condition |
|---|---|---|---|
| 103 | 0 | 241 | $prop->{'cf_buffer'} //= \my $str |
| 104 | 0 | 241 | ${$$prop{'cf_buffer'};} //= '' |
| 267 | 0 | 0 | $level || 'debug' |
| 411 | 0 | 27 | (shift() // $prop->{'cf_status'}) // 200 |
| 422 | 0 | 27 | $prop->{'cf_content_type'} || 'text/html' |
| 424 | 14 | 13 | $prop->{'cf_charset'} || 'utf-8' |
| 488 | 0 | 0 | $prop->{'stash'} //= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 137 | 33 | 0 | 4 | $$prop{"cf_$name"} // $default |
| 246 | 4 | 0 | 0 | $prop->{'cf_logfh'} || $glob->error_fh |
| 248 | 4 | 0 | 0 | $fh or $logger |
| 274 | 0 | 4 | 0 | $time // time |
| 327 | 14 | 13 | 0 | $prop->{'cf_parent_fh'} // $glob |
| 365 | 0 | 0 | 0 | $prop->{'cookies_in'} ||= do { if (defined $env->{'HTTP_COOKIE'}) { require CGI::Cookie; 'CGI::Cookie'->parse($env->{'HTTP_COOKIE'}); } else { +{}; } } |
| 411 | 0 | 0 | 27 | shift() // $prop->{'cf_status'} |