Condition Coverage

blib/lib/Dancer/Test.pm
Criterion Covered Total %
condition 42 69 60.8


and 3 conditions

line !l l&&!r l&&r condition
87 1189 0 17 &blessed($reference) && $reference->isa($classname)
306 59 8 45 $name eq $key and $value eq $val
320 15 13 0 $args->{'body'} and $args->{'files'}
330 10 0 3 ref $content and ref $content eq "HASH"
398 69 425 8 $method eq "GET" and $params
426 0 0 0 defined $response && $response->exists

or 2 conditions

line l !l condition
61 1 85 $options{'appdir'} ||= "."
200 0 4 $test_name ||= "response content looks good for "
313 36 466 $args ||= {}
327 2 11 $args->{'content_type'} || 'text/plain'
347 0 5 $file->{'content_type'} ||= "text/plain"
372 16 12 $content_type || ''

or 3 conditions

line l !l&&r !l&&!r condition
117 7 36 0 $test_name ||= "a route exists for $method $path"
128 2 2 0 $test_name ||= "no route exists for $method $path"
154 72 88 0 $test_name ||= "response status is $status for " . _req_label($req)
163 1 3 0 $test_name ||= "response status is not $status for " . _req_label($req)
174 42 81 0 $test_name ||= "response content looks good for " . _req_label($req)
183 0 4 0 $test_name ||= "response content looks good for " . _req_label($req)
192 20 21 0 $test_name ||= "response content looks good for " . _req_label($req)
208 9 50 0 $test_name ||= "response content looks good for " . _req_label($req)
217 0 1 0 $test_name ||= "a file is returned for " . _req_label($req)
226 4 3 0 $test_name ||= "headers are as expected for " . _req_label($req)
259 8 19 0 $test_name ||= "headers include expected data for " . _req_label($req)
268 0 0 0 $test_name ||= "redirect location looks good for " . _req_label($req)
277 0 0 0 $test_name ||= "redirect location looks good for " . _req_label($req)