Condition Coverage

blib/lib/Brannigan/Tree.pm
Criterion Covered Total %
condition 61 78 78.2


and 3 conditions

line !l l&&!r l&&r condition
91 89 47 0 $rules->{$_}{'required'} and !defined($params->{$_}) || $params->{$_} eq ''
117 28 3 3 exists $param_rules->{$_}{'default'} and ref $param_rules->{$_}{'default'} eq 'CODE'
139 147 2 0 scalar @refs == 0 and $self->{'ignore_missing'}
140 0 147 0 scalar @refs and $self->{'ignore_missing'}
177 90 0 17 $parse and ref $parse eq 'CODE'
259 84 68 0 not $validations->{'required'} and !defined($value) || $value eq ''
260 66 84 0 $validations->{'required'} and !defined($value) || $value eq ''
264 146 0 1 $validations->{'forbidden'} and defined $value
146 0 1 $validations->{'forbidden'} and defined $value and $value ne ''
292 213 64 29 $type and $type eq 'array'
277 20 9 $type and $type eq 'array' and $v eq 'values'
293 213 20 64 $type and $type eq 'hash'
233 35 29 $type and $type eq 'hash' and $v eq 'keys'
300 250 0 18 $v eq 'validate' and ref $validations->{$v} eq 'CODE'
1 249 0 exists $self->{'_custom_validations'} and exists $self->{'_custom_validations'}{$v}
240 0 9 exists $self->{'_custom_validations'} and exists $self->{'_custom_validations'}{$v} and ref $self->{'_custom_validations'}{$v} eq 'CODE'
379 2 217 0 scalar @_ and ref $_[0] eq 'HASH' || ref $_[0] eq 'Brannigan::Tree'
397 51 2 0 $k eq 'forbidden' and $_->{$k}
37 14 0 $k eq 'required' and $_->{$k}

or 3 conditions

line l !l&&r !l&&!r condition
91 5 2 40 !defined($params->{$_}) || $params->{$_} eq ''
114 31 3 131 not defined $params->{$_} or $params->{$_} eq ''
127 2 3 149 not defined $params->{$_} or $params->{$_} eq ''
259 1 1 66 !defined($value) || $value eq ''
260 1 2 81 !defined($value) || $value eq ''
291 23 0 306 $v eq 'parse' or $v eq 'default'
379 212 5 0 ref $_[0] eq 'HASH' || ref $_[0] eq 'Brannigan::Tree'