lib/Asterisk/LCR/Object.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 2 totaltotal 70.0% 14 / 20 CC 2 SCAR 5.1
CC
2
Cov
79%
new
2.1
validate
2.0
BEGIN
1.0
CRAP 1.7
« blib/lib/Asterisk/LCR/Storage/MyRoutes.pm ↑ Summary
1 package Asterisk::LCR::Object;
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub new
6 1 ▶{
Subroutine new: called CC=2 SCAR=7.6
Pod undocumented
7 1 my $class = shift;
8 1 my $self = bless { @_ }, $class;
9 1 ▶ $self->validate() && return $self;
Branch: 1 branch
BranchTrueFalseTotal
$self->validate and return $self 1 0 1
10 0 return;
11 }
12  
13 sub validate
14 0 ▶{
Subroutine validate: not called CC=1 SCAR=6.9
Pod undocumented
15 0 return 1;
16 }
17  
18  
19 1 1;
20  
21  
22 __END__
« blib/lib/Asterisk/LCR/Storage/MyRoutes.pm ↑ Summary