Branch Coverage

blib/lib/Number/Tolerant/Type/offset.pm
Criterion Covered Total %
branch 12 16 75.0


line true false branch
21 1 27 if $string =~ /\A($number)\s+\(?\s*($number)\s+($number)\s*\)?\s*\z/
38 0 113 if @_ > 4
40 28 85 unless defined(my $lhs_number = $self->normalize_number($_[0]))
41 55 30 unless defined(my $minus_number = $self->normalize_number($_[2]))
42 27 3 unless defined(my $plus_number = $self->normalize_number($_[3]))
44 0 3 unless $_[1] eq "offset"
45 0 3 unless $minus_number <= 0
46 0 3 unless $plus_number >= 0