Condition Coverage

blib/lib/Brannigan/Validations.pm
Criterion Covered Total %
condition 28 35 80.0


and 3 conditions

line !l l&&!r l&&r condition
59 0 1 1 $boolean && defined $value
88 10 3 12 $class->min_length($value, $min) && $class->max_length($value, $max)
154 5 10 30 defined $value && $value >= $min && $value <= $max
166 0 1 2 defined $value && $value >= $min
178 0 1 2 defined $value && $value <= $max
231 0 1 2 ref $regex eq 'Regexp' && $value =~ /$regex/
356 2 16 6 $sc <= $#chars and ord($chars[$sc]) - ord($chars[$fc]) == 1
390 2 16 6 $sc <= $#chars and $chars[$sc] eq $chars[$fc]

or 2 conditions

line l !l condition
426 0 0 $dict_files ||= []

or 3 conditions

line l !l&&r !l&&!r condition
45 7 83 1 !$boolean || defined $value
74 1 2 2 !$boolean || $value
142 0 24 4 !$boolean || $value =~ /^\d+$/