line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
26
|
|
|
26
|
|
154
|
use strict; |
|
26
|
|
|
|
|
175
|
|
|
26
|
|
|
|
|
688
|
|
2
|
26
|
|
|
26
|
|
122
|
use warnings; |
|
26
|
|
|
|
|
38
|
|
|
26
|
|
|
|
|
820
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: a tolerance "m == n" |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package |
6
|
|
|
|
|
|
|
Number::Tolerant::Type::constant; |
7
|
26
|
|
|
26
|
|
111
|
use parent qw(Number::Tolerant::Type); |
|
26
|
|
|
|
|
42
|
|
|
26
|
|
|
|
|
129
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
1
|
14
|
sub construct { shift; $_[0] } |
|
4
|
|
|
|
|
10
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub parse { |
12
|
16
|
|
|
16
|
1
|
32
|
my $self = shift; |
13
|
16
|
|
|
|
|
59
|
return $self->normalize_number($_[0]); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub valid_args { |
17
|
90
|
|
|
90
|
1
|
138
|
my $self = shift; |
18
|
|
|
|
|
|
|
|
19
|
90
|
|
|
|
|
248
|
my $number = $self->normalize_number($_[0]); |
20
|
|
|
|
|
|
|
|
21
|
90
|
100
|
|
|
|
224
|
return unless defined $number; |
22
|
|
|
|
|
|
|
|
23
|
71
|
100
|
|
|
|
158
|
return $number if @_ == 1; |
24
|
|
|
|
|
|
|
|
25
|
67
|
|
|
|
|
171
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |