blib/lib/Number/Tolerant/Type/offset.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 16 | 75.0 |
line | true | false | branch |
---|---|---|---|
21 | 1 | 15 | if $string =~ /\A($number)\s+\(?\s*($number)\s+($number)\s*\)?\s*\z/ |
38 | 0 | 94 | if @_ > 4 |
40 | 22 | 72 | unless defined(my $lhs_number = $self->normalize_number($_[0])) |
41 | 46 | 26 | unless defined(my $minus_number = $self->normalize_number($_[2])) |
42 | 23 | 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 |