Branch Coverage

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


line true false branch
21 1 16 if $string =~ /\A($number)\s+\(?\s*($number)\s+($number)\s*\)?\s*\z/
38 0 72 if @_ > 4
40 17 55 unless defined(my $lhs_number = $self->normalize_number($_[0]))
41 31 24 unless defined(my $minus_number = $self->normalize_number($_[2]))
42 21 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