Condition Coverage

blib/lib/Mojolicious/Plugin/Restify.pm
Criterion Covered Total %
condition 22 51 43.1


and 3 conditions

line !l l&&!r l&&r condition
167 0 2 0 ref $routes and ref $routes eq 'ARRAY'
226 22 0 1 ref $path and ref $path eq 'ARRAY'

or 2 conditions

line l !l condition
11 1 0 $conf //= {}
15 0 1 $conf->{'collection_method_map'} //= {'get', 'list', 'post', 'create'}
21 0 1 $conf->{'element_method_map'} //= {'delete', 'delete', 'get', 'read', 'patch', 'patch', 'put', 'update'}
28 1 0 $conf->{'over'} //= 'standard'
31 0 1 $conf->{'resource_lookup'} //= 1
45 0 0 $captures->{'int'} // ''
69 0 0 $captures->{'uuid'} // ''
84 1 1 $options->{'element'} //= 1
117 0 2 $options->{'placeholder'} //= ':'
157 0 0 $c->match->stack->[-1]{"${name}_id"} // ''
170 1 1 $defaults //= {}
235 1 8 $hashref->{$key} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
45 2 0 0 $captures->{$pattern} // $captures->{'int'}
69 0 0 0 $captures->{$pattern} // $captures->{'uuid'}
91 0 0 2 $options->{'collection_method_map'} // $conf->{'collection_method_map'}
116 0 2 0 $options->{'over'} //= $conf->{'over'}
118 2 0 0 $options->{'resource_lookup'} //= $conf->{'resource_lookup'}
124 0 0 2 $options->{'element_method_map'} // $conf->{'element_method_map'}
171 1 1 0 $defaults->{'resource_lookup'} //= $conf->{'resource_lookup'}