Branch Coverage

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


line true false branch
45 0 0 if not /^x-/
55 0 0 if ($mn == 1 and not exists $paths{$p})
57 0 0 if (@p > 2)
62 0 0 if ($m) { }
105 0 0 if ($http_methods_func_map{"${method}:$path_spec"})
107 0 0 if $mf
108 0 0 if $mm
110 0 0 if ($module_name eq '') { }
115 0 0 $http_methods_func_map{$func} ? :
116 0 0 if ($rfunc eq 'create' and $func eq 'post' and $path_spec =~ m[/\{[^/{}]*\}$])
125 0 0 unless $config->{'schema'}
128 0 0 if ($config->{'schema'} =~ /\.json/i) { }
0 0 elsif ($config->{'schema'} =~ /\.yaml/i) { }
134 0 0 if ($schema and 'HASH' eq ref $schema)
137 0 0 if ('HASH' eq ref $_ and exists $_->{'$ref'} and not ref $_->{'$ref'} and keys %$_ == 1)
144 0 0 if ('HASH' eq ref $rp) { }
160 0 0 if $parameter_spec =~ /^x-/
167 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') { }
168 0 0 $required ? :
188 0 0 if ($parameter_spec->{'type'} and $parameter_spec->{'type'} eq 'integer') { }
195 0 0 if ($parameter_spec->{'type'} and $parameter_spec->{'type'} eq 'file') { }
201 0 0 if ($src)
204 0 0 if $required
207 0 0 if ($mpath =~ /\(\?
217 0 0 if length $_[1] >= length $_[0]
220 0 0 if $a eq $b
221 0 0 if (&$ssc($a, $b))
224 0 0 if (&$ssc($b, $a))
243 0 0 if ($custom_map and 'HASH' eq ref $custom_map)
248 0 0 if $path_spec =~ /^x-/
252 0 0 if $method =~ /^x-/
255 0 0 if ($paths->{$path_spec}{$method}{'parameters'})
259 0 0 $method eq 'delete' ? :
306 0 0 if ($@)
317 0 0 if ($app->route_exists($route))
320 0 0 if $debug
322 0 0 if not $success_load or $@
325 0 0 unless $cref