Condition Coverage

blib/lib/Yancy/Plugin/OpenAPI.pm
Criterion Covered Total %
condition 21 41 51.2


and 3 conditions

line !l l&&!r l&&r condition
120 0 2 1 $this_ref and $schema_name
2 1 0 $this_ref and $schema_name and $this_ref ne $schema_name
162 2 0 3 @path_params && $path_params[-1]{'name'}

or 2 conditions

line l !l condition
76 0 1 $config->{'default_controller'} //= "yancy"
110 3 0 $_->{'in'} // ""
158 8 4 $_->{'in'} // ""
241 1 0 $schema->{'x-id-field'} // "id"
243 0 1 $schema->{'x-view'} || {}
251 3 0 $props{$prop}{'type'} ||= "string"
410 0 1 $config->{'info'} || {'title', $config->{'title'} // 'OpenAPI Spec', 'version', '1'}

or 3 conditions

line l !l&&r !l&&!r condition
75 0 1 0 $config->{'model'} // $app->yancy->model
118 0 0 2 $schema->{'$ref'} || $schema->{'items'} && $schema->{'items'}{'$ref'} || $schema->{'properties'} && $schema->{'properties'}{'items'} && $schema->{'properties'}{'items'}{'$ref'}
243 0 1 0 +($schema->{'x-view'} || {})->{'schema'} // $schema_name
245 1 0 0 $schema->{'properties'} || $self->model->schema($real_schema_name)->info->{'properties'}
265 0 1 2 $type eq 'number' || $type eq 'integer'
410 0 1 0 $config->{'host'} // hostname()