Branch Coverage

blib/lib/Catalyst/Utils/StrongParameters.pm
Criterion Covered Total %
branch 53 68 77.9


line true false branch
18 2 0 if defined $arg
23 0 0 if defined $arg
32 4 6 if (ref $proto[0])
51 0 4 if (ref $proto[0])
67 0 6 unless $self->_current
71 4 21 if $a eq ""
72 3 18 if $b eq ""
78 50 62 unless $self->_flatten_array_value
79 2 60 (ref $value || '') eq 'ARRAY' ? :
84 2 12 $self->_src eq 'data' ? :
92 24 106 if (ref $rule or !1) { }
98 636 62 unless defined $i
103 14 13 unless @$cloned_rules
106 1 26 if (ref $value || '') eq "HASH" and not %$value
110 17 89 if ((ref $rules->[0] || '') eq 'ARRAY') { }
112 7 10 unless %$value
115 14 75 if ($rule eq '') { }
117 0 14 unless (defined $context->{$key})
118 0 0 $self->_required ? :
123 27 48 unless (defined $context->{$key})
124 2 25 $self->_required ? :
139 20 78 if (ref $rule or !1) { }
143 20 10 if (exists $value->{$pointer}) { }
146 0 10 $self->_required ? :
150 0 10 unless (ref $value || '') eq "ARRAY"
154 14 11 unless @$cloned_rules
157 1 24 if (ref $value || '') eq "HASH" and not %$value
162 11 67 if ((ref $rules->[0] || '') eq 'ARRAY') { }
164 5 6 unless %$value
167 14 53 if ($rule eq '') { }
170 0 0 if ((ref $value || '') eq 'HASH' and exists $value->{$pointer}) { }
173 0 0 $self->_required ? :
180 74 17 if ((ref $value || '') eq 'HASH' and exists $value->{$pointer}) { }
183 0 17 $self->_required ? :