Condition Coverage

blib/lib/Number/Tolerant.pm
Criterion Covered Total %
condition 68 72 94.4


and 3 conditions

line !l l&&!r l&&r condition
159 4 0 111 ref $guts and not &Scalar::Util::blessed($guts)
161 30 29 52 defined $guts->{'min'} and defined $guts->{'max'}
59 44 8 defined $guts->{'min'} and defined $guts->{'max'} and $guts->{'min'} == $guts->{'max'}
73 5 3 defined $guts->{'min'} and defined $guts->{'max'} and $guts->{'min'} == $guts->{'max'} and not $guts->{'constant'}
251 1 1 1 $_[0]{'min'} and $_[0]{'max'}
1 1 0 $_[0]{'min'} and $_[0]{'max'} and $_[0]{'min'} == $_[0]{'max'}
269 567 68 28 $_[0]{'exclude_min'} and $_[0]{'min'} == $_[1]
274 502 49 14 $_[0]{'exclude_max'} and $_[0]{'max'} == $_[1]
296 7 3 8 defined $_[0]{'min'} and defined $_[1]{'min'}
304 8 3 7 $_[0]{'min'} and $min == $_[0]{'min'}
11 6 1 $_[0]{'min'} and $min == $_[0]{'min'} and $_[0]{'exclude_min'}
7 4 6 $_[1]{'min'} and $min == $_[1]{'min'}
11 4 2 $_[1]{'min'} and $min == $_[1]{'min'} and $_[1]{'exclude_min'}
306 7 3 8 defined $_[0]{'max'} and defined $_[1]{'max'}
314 8 5 5 $_[0]{'max'} and $max == $_[0]{'max'}
13 3 2 $_[0]{'max'} and $max == $_[0]{'max'} and $_[0]{'exclude_max'}
7 2 7 $_[1]{'max'} and $max == $_[1]{'max'}
9 6 1 $_[1]{'max'} and $max == $_[1]{'max'} and $_[1]{'exclude_max'}

or 3 conditions

line l !l&&r !l&&!r condition
209 37 12 4 defined $self->{'min'} or defined $self->{'max'}
256 125 123 206 _num_gt($_[0], $_[1]) || _num_lt($_[0], $_[1])
304 1 9 8 $_[0]{'min'} and $min == $_[0]{'min'} and $_[0]{'exclude_min'} or $_[1]{'min'} and $min == $_[1]{'min'} and $_[1]{'exclude_min'}
314 2 4 12 $_[0]{'max'} and $max == $_[0]{'max'} and $_[0]{'exclude_max'} or $_[1]{'max'} and $max == $_[1]{'max'} and $_[1]{'exclude_max'}
316 14 3 1 defined $min or defined $max
324 0 0 10 $max < $min or $min > $max