line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::RecordStream::DomainLanguage::Valuation::KeySpec; |
2
|
|
|
|
|
|
|
|
3
|
27
|
|
|
27
|
|
164
|
use strict; |
|
27
|
|
|
|
|
64
|
|
|
27
|
|
|
|
|
726
|
|
4
|
27
|
|
|
27
|
|
174
|
use warnings; |
|
27
|
|
|
|
|
64
|
|
|
27
|
|
|
|
|
710
|
|
5
|
|
|
|
|
|
|
|
6
|
27
|
|
|
27
|
|
6982
|
use App::RecordStream::DomainLanguage::Valuation; |
|
27
|
|
|
|
|
68
|
|
|
27
|
|
|
|
|
778
|
|
7
|
|
|
|
|
|
|
|
8
|
27
|
|
|
27
|
|
155
|
use base ('App::RecordStream::DomainLanguage::Valuation'); |
|
27
|
|
|
|
|
65
|
|
|
27
|
|
|
|
|
3814
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new |
11
|
|
|
|
|
|
|
{ |
12
|
273
|
|
|
273
|
0
|
592
|
my $class = shift; |
13
|
273
|
|
|
|
|
546
|
my $keyspec = shift; |
14
|
|
|
|
|
|
|
|
15
|
273
|
|
|
|
|
782
|
my $this = |
16
|
|
|
|
|
|
|
{ |
17
|
|
|
|
|
|
|
'KEYSPEC' => $keyspec, |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
|
20
|
273
|
|
|
|
|
566
|
bless $this, $class; |
21
|
|
|
|
|
|
|
|
22
|
273
|
|
|
|
|
1125
|
return $this; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub evaluate_record |
26
|
|
|
|
|
|
|
{ |
27
|
1307
|
|
|
1307
|
0
|
2312
|
my $this = shift; |
28
|
1307
|
|
|
|
|
2555
|
my $r = shift; |
29
|
|
|
|
|
|
|
|
30
|
1307
|
|
|
|
|
2493
|
my $keyspec = $this->{'KEYSPEC'}; |
31
|
|
|
|
|
|
|
|
32
|
1307
|
|
|
|
|
1982
|
return ${$r->guess_key_from_spec($keyspec)}; |
|
1307
|
|
|
|
|
3419
|
|
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |