| 1 | package POE::Component::SmokeBox::Result; | ||||||||||||
| 2 | 24 | $POE::Component::SmokeBox::Result::VERSION = '0.54'; | |||||||||||
| 3 | #ABSTRACT: object defining SmokeBox job results. | ||||||||||||
| 4 | |||||||||||||
| 5 | 24 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 24 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | sub new { | ||||||||||||
| 9 | 51 | ▶ | my $package = shift; | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 10 | 51 | return bless [ ], $package; | |||||||||||
| 11 | } | ||||||||||||
| 12 | |||||||||||||
| 13 | sub add_result { | ||||||||||||
| 14 | 84 | ▶ | my $self = shift; | ||||||||||
|
Subroutine
add_result: called CC=3 SCAR=11.3
Pod
documented
| |||||||||||||
| 15 | 84 | ▶ | my $result = shift || return; | ||||||||||
|
Condition50%1/2
shift() || (return)
MC/DC0%0/1
shift() || (return)
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||
| 16 | 84 | ▶ | return unless ref $result eq 'HASH'; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 17 | 84 | push @{ $self }, $result; | |||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | sub results { | ||||||||||||
| 21 | 100 | ▶ | return @{ $_[0] }; | ||||||||||
|
Subroutine
results: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 24 | 1; | |||||||||||
| 25 | |||||||||||||
| 26 | __END__ | ||||||||||||