line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# Martin Busik |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::C2FIT::ScientificDoubleTypeAdapter; |
5
|
1
|
|
|
1
|
|
1575
|
use base 'Test::C2FIT::TypeAdapter'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
84
|
|
6
|
1
|
|
|
1
|
|
6
|
use Test::C2FIT::ScientificDouble; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
134
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub parse { |
9
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
10
|
0
|
|
|
|
|
|
my $value = shift; |
11
|
0
|
|
|
|
|
|
return Test::C2FIT::ScientificDouble->new($value); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub toString { |
15
|
0
|
|
|
0
|
1
|
|
my ( $self, $value ) = @_; |
16
|
0
|
|
|
|
|
|
return $value->toString; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub equals { |
20
|
0
|
|
|
0
|
0
|
|
my ( $self, $a, $b ) = @_; |
21
|
0
|
|
|
|
|
|
return $a->equals($b); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |