blib/lib/App/RecordStream/Accumulator.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 3 totaltotal 84.2% 16 / 19 CC 2 SCAR 4.1
CC
2
Cov
100%
get_records
2.0
accept_record
1.0
accumulate_record
1.0
CRAP 1.5
« blib/lib/App/RecordStream/Operation/tojsonarray.pm ↑ Summary blib/lib/App/RecordStream/Operation/assert.pm »
1 package App::RecordStream::Accumulator;
2  
3 11 our $VERSION = "4.0.23";
4  
5 sub accept_record {
6 393 ▶ my $this = shift;
Subroutine accept_record: called CC=1 SCAR=0.0
Pod undocumented
7 393 $this->accumulate_record(shift);
8 }
9  
10 sub accumulate_record {
11 393 ▶ my $this = shift;
Subroutine accumulate_record: called CC=1 SCAR=0.0
Pod undocumented
12 393 push @{$this->get_records()}, shift;
13 }
14  
15 sub get_records {
16 417 ▶ my $this = shift;
Subroutine get_records: called CC=2 SCAR=6.9
Pod undocumented
17  
18 417 ▶ $this->{'RECORDS'} ||= [];
Condition100%2/2
$this->{"RECORDS"} ||= []
l!l
39324
MC/DC100%1/1
$this->{"RECORDS"} ||= []
$this->{"RECORDS"}
Truth table100%2/2
A
A= $this->{"RECORDS"}
Aresult
11
00
19 417 return $this->{'RECORDS'};
20 }
21  
22 11 1;
« blib/lib/App/RecordStream/Operation/tojsonarray.pm ↑ Summary blib/lib/App/RecordStream/Operation/assert.pm »