Branch Coverage

blib/lib/Catalyst/Utils/StrongParameters.pm
Criterion Covered Total %
branch 49 64 76.5


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 2 19 if $a eq ""
72 3 16 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 22 100 if (ref $rule or !1) { }
98 556 60 unless defined $i
103 14 12 unless @$cloned_rules
107 16 84 if ((ref $rules->[0] || '') eq 'ARRAY') { }
109 6 10 unless %$value
112 14 70 if ($rule eq '') { }
114 0 14 unless (defined $context->{$key})
115 0 0 $self->_required ? :
120 22 48 unless (defined $context->{$key})
121 2 20 $self->_required ? :
136 18 72 if (ref $rule or !1) { }
140 20 8 if (exists $value->{$pointer}) { }
143 0 8 $self->_required ? :
147 0 10 unless (ref $value || '') eq "ARRAY"
151 14 10 unless @$cloned_rules
156 10 62 if ((ref $rules->[0] || '') eq 'ARRAY') { }
158 4 6 unless %$value
161 14 48 if ($rule eq '') { }
164 0 0 if ((ref $value || '') eq 'HASH' and exists $value->{$pointer}) { }
167 0 0 $self->_required ? :
174 74 12 if ((ref $value || '') eq 'HASH' and exists $value->{$pointer}) { }
177 0 12 $self->_required ? :