Branch Coverage

blib/lib/Data/Rx/CoreType/num.pm
Criterion Covered Total %
branch 19 20 95.0


line true false branch
11 2 32 unless "Data::Rx::Util"->_x_subset_keys_y($arg, {"range", 1, "value", 1})
17 4 28 if $arg->{'range'}
19 4 28 if (exists $arg->{'value'})
21 0 3 if (not defined $val or ref $val or not $class->_value_is_of_type($val))
34 3 28 if defined $arg->{'value'}
71 14 485 unless length $value
76 199 286 if ref $value
78 89 197 unless $self->_value_is_of_type($value)
80 24 173 if ($self->{'range_check'} and not $self->{'range_check'}->($value))
88 20 153 if (defined $self->{'value'} and $value != $self->{'value'})