Condition Coverage

blib/lib/Mojolicious/Plugin/OpenAPI/SpecRenderer.pm
Criterion Covered Total %
condition 23 29 79.3


and 3 conditions

line !l l&&!r l&&r condition
116 2 1 29 not $validator and $openapi

or 2 conditions

line l !l condition
8 0 49 $ENV{'MOJO_OPENAPI_DEBUG'} || 0
52 0 59 $config->{'render_specification'} // 1
63 0 59 $config->{'render_specification_for_paths'} // 1
102 13 0 $validator->get(['info', 'title']) || ''
2 11 $validator->get(['info', 'description']) || ''
113 11 21 $c->stash('format') || 'json'
127 53 5 $path_item->{'operation_id'} //= ""

or 3 conditions

line l !l&&r !l&&!r condition
59 2 2 55 $config->{'spec_route_name'} || $openapi->validator->get('/x-mojo-name')
92 2 12 0 $custom || Mojolicious::Plugin::OpenAPI::_self($c)->validator
112 2 1 29 $custom || $self->{'standalone'}
117 11 18 0 $openapi->{'bundled'} ||= $openapi->validator->bundle