line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
26
|
|
|
26
|
|
144
|
use strict; |
|
26
|
|
|
|
|
45
|
|
|
26
|
|
|
|
|
730
|
|
2
|
26
|
|
|
26
|
|
111
|
use warnings; |
|
26
|
|
|
|
|
40
|
|
|
26
|
|
|
|
|
809
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: an infinite tolerance |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package |
6
|
|
|
|
|
|
|
Number::Tolerant::Type::infinite; |
7
|
26
|
|
|
26
|
|
110
|
use parent qw(Number::Tolerant::Type); |
|
26
|
|
|
|
|
46
|
|
|
26
|
|
|
|
|
121
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
1
|
10
|
sub construct { shift; { value => 0 } } |
|
7
|
|
|
|
|
17
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub parse { |
12
|
20
|
|
|
20
|
1
|
46
|
my ($self, $string, $factory) = @_; |
13
|
20
|
100
|
|
|
|
57
|
return $factory->new('infinite') if $string =~ m!\Aany\s+number\z!; |
14
|
19
|
|
|
|
|
50
|
return; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
85
|
|
|
85
|
1
|
103
|
sub valid_args { shift; |
18
|
85
|
100
|
100
|
|
|
256
|
return ($_[0]) if @_ == 1 and defined $_[0] and $_[0] eq 'infinite'; |
|
|
|
100
|
|
|
|
|
19
|
78
|
|
|
|
|
169
|
return; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |