SmokeBox/Result.pm

filter: Statementstmt 100% 17 / 17 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod 100% 3 / 3 totaltotal 90.0% 27 / 30 SCAR 11.0
CC
3
Cov
90%
add_result
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« SmokeBox/Job.pm ↑ Summary SmokeBox/Backend/SmokeInABox.pm »
1 package POE::Component::SmokeBox::Result;
2 24 $POE::Component::SmokeBox::Result::VERSION = '0.56';
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)
l!l
840
MC/DC0%0/1
shift() || (return)
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
16 84 ▶ return unless ref $result eq 'HASH';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $result eq "HASH" 0 84 84
17 84 push @{ $self }, $result;
18 }
19  
20 sub results {
21 98 ▶ return @{ $_[0] };
Subroutine results: called CC=1 SCAR=0.0
Pod documented
22 }
23  
24 24 1;
25  
26 __END__
« SmokeBox/Job.pm ↑ Summary SmokeBox/Backend/SmokeInABox.pm »