Branch Coverage

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


line true false branch
170 0 0 if ref $pattern eq 'Regexp'
172 0 0 ref $_ ? :
0 0 if grep {ref $_ ? $pattern =~ /$_/ : $pattern eq $_;} @{$args{'skip'};}
192 1 7 if (@_ and not ref $_[0])
196 1 0 if $description =~ /^(\s+)/
202 1 7 if $description
205 4 4 if (my $p = $arg->{'parameters'})
206 2 2 if (ref $p eq 'HASH')
214 2 7 unless (ref $k)
216 1 1 unless ref $value
220 3 6 unless (exists $k->{'schema'} or exists $k->{'type'})
256 0 0 if $status =~ /^\d{3}$/
258 0 0 $template ? :
266 0 0 if $plugin->validate_response