Condition Coverage

blib/lib/Kelp/Test.pm
Criterion Covered Total %
condition 19 53 35.8


and 3 conditions

line !l l&&!r l&&r condition
74 41 90 0 $code != 500 and $self->res->code == 500

or 2 conditions

line l !l condition
205 11 6 $test_name ||= 'JSON structure matches'

or 3 conditions

line l !l&&r !l&&!r condition
70 0 131 0 $test_name ||= "Response code is $code"
85 0 2 0 $test_name ||= "Response code is not $code"
94 0 100 0 $test_name ||= "Content is '${value}'"
104 0 1 0 $test_name ||= "Content is not '${value}'"
114 6 26 0 $test_name ||= "Content matches $regexp"
124 4 5 0 $test_name ||= "Content does not match $regexp"
134 0 26 0 $test_name ||= "Content-Type is '${value}'"
143 0 0 0 $test_name ||= "Content-Type is not '${value}'"
152 0 10 0 $test_name ||= "Header '${header}' => '${value}'"
153 10 0 0 $test_name || $self->diag_headers
162 0 1 0 $test_name ||= "Header '${header}' is not '${value}'"
163 1 0 0 $test_name || $self->diag_headers
172 0 1 0 $test_name ||= "Header '${header}' =~ $regexp"
173 1 0 0 $test_name || $self->diag_headers
182 0 0 0 $test_name ||= "Header '${header}' !~ $regexp"
183 0 0 0 $test_name || $self->diag_headers