Condition Coverage

blib/lib/Kelp/Test.pm
Criterion Covered Total %
condition 25 65 38.4


and 3 conditions

line !l l&&!r l&&r condition
21 23 0 6 $args[0] and $args[0] eq "-utf8"
96 38 138 0 $code != 500 and $self->res->code == 500

or 2 conditions

line l !l condition
264 11 7 $test_name ||= "JSON structure matches"

or 3 conditions

line l !l&&r !l&&!r condition
46 8 212 0 $self->charset // $self->app->charset
92 0 176 0 $test_name ||= "Response code is $code"
108 0 2 0 $test_name ||= "Response code is not $code"
118 0 116 0 $test_name ||= "Content is '${value}'"
129 11 0 0 $test_name ||= "Content is '${value}'"
141 0 1 0 $test_name ||= "Content is not '${value}'"
152 7 54 0 $test_name ||= "Content matches $regexp"
163 2 21 0 $test_name ||= "Content does not match $regexp"
174 0 40 0 $test_name ||= "Content-Type is '${value}'"
184 0 6 0 $test_name ||= "Full Content-Type is '${value}'"
194 0 0 0 $test_name ||= "Content-Type is not '${value}'"
204 0 24 0 $test_name ||= "Header '${header}' => '${value}'"
205 24 0 0 $test_name || $self->diag_headers
215 0 3 0 $test_name ||= "Header '${header}' is not '${value}'"
216 3 0 0 $test_name || $self->diag_headers
226 0 1 0 $test_name ||= "Header '${header}' =~ $regexp"
227 1 0 0 $test_name || $self->diag_headers
237 0 0 0 $test_name ||= "Header '${header}' !~ $regexp"
238 0 0 0 $test_name || $self->diag_headers