Branch Coverage

blib/lib/Number/Tolerant/Type/to.pm
Criterion Covered Total %
branch 13 14 92.8


line true false branch
24 1 20 if $string =~ /\A($number)\s*<=$X<=\s*($number)\z/
26 1 19 if $string =~ /\A($number)\s*>=$X>=\s*($number)\z/
28 1 18 if $string =~ /\A($number)\s+to\s+($number)\z/
36 41 47 unless 3 == grep({defined $_;} @_)
37 14 33 unless $_[1] eq "to"
39 0 33 unless defined(my $from = $self->normalize_number($_[0]))
40 1 32 unless defined(my $to = $self->normalize_number($_[2]))