Branch Coverage

lib/Dancer/Plugin/Swagger.pm
Criterion Covered Total %
branch 15 28 53.5


line true false branch
168 0 0 if ref $pattern eq 'Regexp'
170 0 0 ref $_ ? :
0 0 if grep {ref $_ ? $pattern =~ /$_/ : $pattern eq $_;} @{$args{'skip'};}
190 1 7 if (@_ and not ref $_[0])
194 1 0 if $description =~ /^(\s+)/
200 1 7 if $description
203 4 4 if (my $p = $arg->{'parameters'})
204 2 2 if (ref $p eq 'HASH')
212 2 7 unless (ref $k)
214 1 1 unless ref $value
218 3 6 unless (exists $k->{'schema'} or exists $k->{'type'})
254 0 0 if $status =~ /^\d{3}$/
256 0 0 $template ? :
264 0 0 if $plugin->validate_response