Branch Coverage

blib/lib/Mojolicious/Plugin/Restify.pm
Criterion Covered Total %
branch 36 58 62.0


line true false branch
29 0 1 if (exists $app->routes->conditions->{'int'}) { }
39 2 0 defined $pattern ? :
41 2 0 if $int =~ /^\d+$/
46 0 1 if (exists $app->routes->conditions->{'standard'}) { }
53 0 1 if (exists $app->routes->conditions->{'uuid'}) { }
63 0 0 defined $pattern ? :
65 0 0 if $uuid =~ /^[a-f0-9]{8}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{12}$/i
76 2 0 ref $_[0] eq 'HASH' ? :
82 1 1 $options->{'prefix'} ? :
86 1 1 $options->{'controller'} ? :
92 1 1 $options->{'element'} ? :
101 2 0 ref $_[0] eq 'HASH' ? :
108 1 1 $options->{'prefix'} ? :
125 1 1 $options->{'resource_lookup'} ? :
151 0 2 unless $routes
154 0 2 if ref $routes and ref $routes eq 'ARRAY'
164 0 2 if (ref $attrs eq 'ARRAY') { }
1 1 elsif (ref $attrs eq 'HASH') { }
165 0 0 if ref $attrs->[-1] eq 'HASH'
166 0 0 if ref $attrs->[0] eq 'HASH'
172 1 1 if (scalar keys %$paths) { }
179 0 1 $options->{'controller'} ? :
1 0 $options->{'resource_lookup'} ? :
187 0 1 $options->{'controller'} ? :
191 0 1 $options->{'prefix'} ? :
208 1 16 unless defined $arrayref
213 1 22 if (ref $path and ref $path eq 'ARRAY')
217 14 9 if (@parts == 1) { }
218 1 13 defined $options ? :