Branch Coverage

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


line true false branch
93 8 419 if _isa($req, "Dancer::Response")
95 382 37 ref $req eq 'ARRAY' ? :
101 249 18 ref $req eq 'ARRAY' ? :
7 267 _isa($req, 'Dancer::Response') ? :
108 54 0 ref $req eq 'ARRAY' ? :
250 0 35 unless $Dancer::Test::a->[0] cmp $Dancer::Test::b->[0]
293 0 45 unless _check_header($full_headers, $name, $value)
305 45 67 if $name eq $key and $value eq $val
315 28 471 if ($method =~ /^(?:PUT|POST)$/)
319 0 28 if ($args->{'body'} and $args->{'files'}) { }
13 15 elsif ($args->{'body'}) { }
3 12 elsif ($args->{'files'}) { }
329 3 10 if (ref $content and ref $content eq "HASH")
333 1 2 ref $value eq 'ARRAY' ? :
350 1 4 if ($file->{'data'}) { }
354 0 4 unless open my $fh, "<", $file->{'filename'}
355 0 4 if (-B $file->{'filename'})
368 16 12 if defined $content
377 480 17 unless $headers
497 2 unless _isa($headers, "HTTP::Headers")
380 16 483 if ($headers->header("Content-Type"))
390 2 5487 if exists $headers->{$key}
395 499 0 unless ($extra_env->{'REQUEST_URI'})
397 8 491 if ($method eq "GET" and $params)
416 33 466 if "Dancer::App"->current->setting("serializer")
422 2 497 if $method eq "HEAD"
424 499 0 if $get_action
425 0 0 defined $response && $response->exists ? :