Condition Coverage

blib/lib/Dancer2/Plugin/Swagger2.pm
Criterion Covered Total %
condition 18 38 47.3


and 3 conditions

line !l l&&!r l&&r condition
174 4 3 1 @values == 0 and $required
187 1 2 3 $type and defined($value //= $parameter_spec->{'default'})
188 3 0 0 $type eq 'integer' || $type eq 'number' and $value =~ /^-?\d/
294 0 0 6 $@ and $@ =~ /^Can't locate /

or 2 conditions

line l !l condition
25 0 2 $args{'controller_factory'} || \&Dancer2::Plugin::Swagger2::_default_controller_factory

or 3 conditions

line l !l&&r !l&&!r condition
47 2 0 0 $validate_spec or $validate_requests
2 0 0 $validate_spec or $validate_requests or $validate_responses
187 3 0 2 $value //= $parameter_spec->{'default'}
188 0 0 3 $type eq 'integer' || $type eq 'number'
192 0 0 0 !$value || $value eq 'false'
216 8 0 0 $responses->{$status} || $responses->{'default'}
262 0 0 4 $args->{'controller'} || $conf->{'controller'}
319 10 3 0 $validator ||= 'Swagger2::SchemaValidator'->new