Branch Coverage

blib/lib/Dancer/Test.pm
Criterion Covered Total %
branch 46 56 82.1


line true false branch
94 8 422 if _isa($req, "Dancer::Response")
96 382 40 ref $req eq 'ARRAY' ? :
102 249 18 ref $req eq 'ARRAY' ? :
7 267 _isa($req, 'Dancer::Response') ? :
109 54 0 ref $req eq 'ARRAY' ? :
251 0 35 unless $Dancer::Test::a->[0] cmp $Dancer::Test::b->[0]
294 0 45 unless _check_header($full_headers, $name, $value)
306 45 67 if $name eq $key and $value eq $val
316 28 474 if ($method =~ /^(?:PUT|POST)$/)
320 0 28 if ($args->{'body'} and $args->{'files'}) { }
13 15 elsif ($args->{'body'}) { }
3 12 elsif ($args->{'files'}) { }
330 3 10 if (ref $content and ref $content eq "HASH")
334 1 2 ref $value eq 'ARRAY' ? :
351 1 4 if ($file->{'data'}) { }
355 0 4 unless open my $fh, "<", $file->{'filename'}
356 0 4 if (-B $file->{'filename'})
369 16 12 if defined $content
378 483 17 unless $headers
500 2 unless _isa($headers, "HTTP::Headers")
381 16 486 if ($headers->header("Content-Type"))
391 2 5520 if exists $headers->{$key}
396 502 0 unless ($extra_env->{'REQUEST_URI'})
398 8 494 if ($method eq "GET" and $params)
417 33 469 if "Dancer::App"->current->setting("serializer")
423 2 500 if $method eq "HEAD"
425 502 0 if $get_action
426 0 0 defined $response && $response->exists ? :