« 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"} ||= []
MC/DC100%1/1
$this->{"RECORDS"} ||= []
$this->{"RECORDS"}
Truth table100%2/2
A
A= $this->{"RECORDS"}
| |||||||||||||
| 19 | 417 | return $this->{'RECORDS'}; | |||||||||||
| 20 | } | ||||||||||||
| 21 | |||||||||||||
| 22 | 11 | 1; | |||||||||||