Monitor/TraceItem.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 3 totaltotal 89.2% 25 / 28 CC 2 SCAR 2.9
CC
2
Cov
100%
getSource
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Monitor/TestScalar.pm ↑ Summary Monitor/Common.pm »
1 package Devel::Monitor::TraceItem;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4
5 155 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
6 155 my ($class, $varRef, $source) = @_;
7 155 my $self = {};
8 155 bless($self => $class);
9 155 $self->{_varRef} = $varRef;
10 155 $self->{_source} = $source;
11 155 return $self;
12 }
13
14 184 ▶sub getVarRef { return shift->{_varRef}; }
Subroutine getVarRef: called CC=1 SCAR=0.0
Pod undocumented
15 236 ▶sub getSource {
Subroutine getSource: called CC=2 SCAR=6.9
Pod undocumented
16 236 my $self = shift;
17 236 ▶ if ($self->{_source}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'_source'}) { } 216 20 236
18 216 return $self->{_source};
19 } else {
20 20 return '';
21 }
22 }
23
24 1 1;
« Monitor/TestScalar.pm ↑ Summary Monitor/Common.pm »