Branch Coverage

blib/lib/Dancer2/Plugin/ParamTypes.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
71 0 8 unless XXX
77 1 0 $item eq 'optional' ? :
8 1 XXX ? :
85 0 9 unless @{$type_details;} == 3 or @{$type_details;} == 4
89 8 1 unless defined $action and length $action
92 1 8 if (XXX) { }
93 0 1 unless XXX
96 0 1 unless @{$sources;} > 0
103 0 9 unless $src eq 'route' or $src eq 'query' or $src eq 'body'
107 0 9 unless defined $self->type_checks->{$type}
110 0 9 unless defined $self->type_actions->{$action}
114 0 9 unless defined $self->type_actions->{'missing'}
147 22 6 if (@sources == 1) { }
150 4 12 unless $plugin->run_check($details)
155 2 6 if ($plugin->run_check($details))
163 2 2 unless $found
181 20 10 $source eq 'query' ? :
2 30 $source eq 'route' ? :
187 11 21 unless (exists $params->{$name})
189 1 10 if $optional
200 8 15 unless (&$check_cb($param_value))