Branch Coverage

blib/lib/Catalyst/Utils/StructuredParameters.pm
Criterion Covered Total %
branch 57 78 73.0


line true false branch
22 2 0 if defined $arg
28 0 0 if defined $arg
34 0 34 if defined $arg
43 4 6 if (ref $proto[0])
62 0 4 if (ref $proto[0])
78 0 6 unless $self->_current
83 0 0 unless $self->_current
88 0 1 unless $self->_current
92 2 23 if $a eq ""
93 3 20 if $b eq ""
99 50 62 unless $self->_flatten_array_value
100 2 60 (ref $value || '') eq 'ARRAY' ? :
105 2 12 $self->_src eq 'data' ? :
113 24 106 if (ref $rule or !1) { }
119 636 62 unless defined $i
124 0 24 if $found_array_depth > $self->max_array_depth
132 14 13 unless @$cloned_rules
135 1 26 if (ref $value || '') eq "HASH" and not %$value
139 17 89 if ((ref $rules->[0] || '') eq 'ARRAY') { }
141 7 10 unless %$value
144 14 75 if ($rule eq '') { }
146 0 14 unless (defined $context->{$key})
147 0 0 $self->_required ? :
152 27 48 unless (defined $context->{$key})
153 2 25 $self->_required ? :
168 20 78 if (ref $rule or !1) { }
172 20 10 if (exists $value->{$pointer}) { }
175 0 10 $self->_required ? :
179 0 10 unless (ref $value || '') eq "ARRAY"
182 0 10 if $found_array_depth > $self->max_array_depth
192 14 11 unless @$cloned_rules
195 1 24 if (ref $value || '') eq "HASH" and not %$value
200 11 67 if ((ref $rules->[0] || '') eq 'ARRAY') { }
202 5 6 unless %$value
205 14 53 if ($rule eq '') { }
208 0 0 if ((ref $value || '') eq 'HASH' and exists $value->{$pointer}) { }
211 0 0 $self->_required ? :
218 74 17 if ((ref $value || '') eq 'HASH' and exists $value->{$pointer}) { }
221 0 17 $self->_required ? :