blib/lib/Dancer2/Plugin/Swagger2.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 20 | 30.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
153 | 2 | 1 | 1 | @values == 0 and $required |
line | l | !l | condition |
---|---|---|---|
26 | 0 | 0 | $args{'controller_factory'} || \&Dancer2::Plugin::Swagger2::_default_controller_factory |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
44 | 0 | 0 | 0 | $validate_spec or $validate_requests |
0 | 0 | 0 | $validate_spec or $validate_requests or $validate_responses | |
183 | 3 | 0 | 0 | $responses->{$status} || $responses->{'default'} |
229 | 0 | 0 | 0 | $args->{'controller'} || $conf->{'controller'} |
287 | 3 | 2 | 0 | $validator ||= 'Swagger2::SchemaValidator'->new |