Marathon/Remote.pm

filter: Statementstmt 55.5% 10 / 18 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 45.1% 14 / 31 CC 3 SCAR 10.2
CC
3
Cov
50%
dependencies
6.0
id
2.1
_bail
2.0
CRAP 2.8
« Marathon/Events.pm ↑ Summary
1 package Marathon::Remote;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub _bail {
Subroutine _bail: not called CC=1 SCAR=6.9
7 0 die "cannot manipulate unproperly initialised Marathon::Remote object (App or Group). Make sure to pass in an instance of Marathon when calling Marathon::App/Group->new(\$conf, \$parent)";
8 }
9  
10 10 ▶sub id {
Subroutine id: called CC=2 SCAR=7.6
Pod undocumented
11 10 my ($self, $val) = @_;
12 10 ▶ if ( $val ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($val) 0 10 10
13 0 $self->{data}->{id} = $val;
14 }
15 10 return $self->{data}->{id};
16 }
17  
18 0 ▶sub version {
Subroutine version: not called CC=1 SCAR=6.9
Pod undocumented
19 0 my $self = shift;
20 0 return $self->{data}->{version};
21 }
22  
23 0 ▶sub dependencies {
Subroutine dependencies: not called CC=2 SCAR=17.9
Pod undocumented
24 0 my ($self, $val) = @_;
25 0 ▶ if ( $val ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($val) 0 0 0
26 0 $self->{data}->{dependencies} = $val;
27 }
28 0 return $self->{data}->{dependencies};
29 }
30  
31  
32 4 1;
« Marathon/Events.pm ↑ Summary