Branch Coverage

lib/Dancer2/Plugin/OpenAPIRoutes.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
39 0 0 if not /^x-/
50 0 0 if ($mn == 1 and not exists $paths{$p})
52 0 0 if (@p > 2)
57 0 0 if ($m) { }
98 0 0 if ($module_name eq '') { }
103 0 0 if $http_methods_func_map{$func}
109 0 0 unless $config->{'schema'}
112 0 0 if ($config->{'schema'} =~ /\.json/i) { }
0 0 elsif ($config->{'schema'} =~ /\.yaml/i) { }
118 0 0 if ($schema and 'HASH' eq ref $schema)
121 0 0 if ('HASH' eq ref $_ and exists $_->{'$ref'} and not ref $_->{'$ref'} and keys %$_ == 1)
128 0 0 if ('HASH' eq ref $rp) { }
144 0 0 if $parameter_spec =~ /^x-/
151 0 0 if ($in eq 'body') { }
0 0 elsif ($in eq 'header') { }
0 0 elsif ($in eq 'query') { }
0 0 elsif ($in eq 'path') { }
0 0 elsif ($in eq 'formData') { }
152 0 0 $required ? :
172 0 0 if ($parameter_spec->{'type'} and $parameter_spec->{'type'} eq 'integer') { }
179 0 0 if ($parameter_spec->{'type'} and $parameter_spec->{'type'} eq 'file') { }
185 0 0 if ($src)
188 0 0 if $required
191 0 0 if ($mpath =~ /\(\?
201 0 0 if length $_[1] >= length $_[0]
204 0 0 if $a eq $b
205 0 0 if (&$ssc($a, $b))
208 0 0 if (&$ssc($b, $a))
226 0 0 if $path_spec =~ /^x-/
230 0 0 if $method =~ /^x-/
232 0 0 if ($module_func eq 'create' and $path =~ m[/:[^:/]+$])
236 0 0 if ($paths->{$path_spec}{$method}{'parameters'})
240 0 0 $method eq 'delete' ? :
289 0 0 if ($app->route_exists($route))
292 0 0 if $debug
294 0 0 if not $success_load or $@
297 0 0 unless $cref