blib/lib/App/RecordStream/DomainLanguage/Valuation/KeySpec.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 93.5% 29 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/App/RecordStream/Stream/Printer.pm ↑ Summary bin/recs-chain »
1 package App::RecordStream::DomainLanguage::Valuation::KeySpec;
2  
3 29 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 29 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 29 ▶use App::RecordStream::DomainLanguage::Valuation;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 29 ▶use base ('App::RecordStream::DomainLanguage::Valuation');
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub new
11 {
12 273 ▶ my $class = shift;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
13 273 my $keyspec = shift;
14  
15 273 my $this =
16 {
17 'KEYSPEC' => $keyspec,
18 };
19  
20 273 bless $this, $class;
21  
22 273 return $this;
23 }
24  
25 sub evaluate_record
26 {
27 1303 ▶ my $this = shift;
Subroutine evaluate_record: called CC=1 SCAR=0.0
Pod undocumented
28 1303 my $r = shift;
29  
30 1303 my $keyspec = $this->{'KEYSPEC'};
31  
32 1303 return ${$r->guess_key_from_spec($keyspec)};
33 }
34  
35 29 1;
« blib/lib/App/RecordStream/Stream/Printer.pm ↑ Summary bin/recs-chain »