MoreUtils/Smooth/Intermediate.pm

filter: Statementstmt 83.3% 15 / 18 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 2 totaltotal 65.6% 21 / 32 CC 3 SCAR 7.6
CC
3
Cov
74%
new
3.3
reverse
2.0
BEGIN
1.0
CRAP 2.1
« MoreUtils/SSSR.pm ↑ Summary MoreUtils.pm »
1 package Graph::MoreUtils::Smooth::Intermediate;
2  
3 # ABSTRACT: Container for intermediate vertices
4 9 our $VERSION = '0.3.0'; # VERSION
5  
6 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 9 ▶use Scalar::Util qw( blessed );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶sub new {
Subroutine new: called CC=3 SCAR=12.0
Pod undocumented
12 2 my $class = shift;
13 2 ▶ my $self = [ map { blessed $_ &&
Branch: 1 branch
BranchTrueFalseTotal
builtin::blessed($_) && $_->isa('Graph::MoreUtils::Smooth::Intermediate') ? : 0 2 2
Condition33%1/3
builtin::blessed($_) and $_->isa("Graph::MoreUtils::Smooth::Intermediate")
!ll&&!rl&&r
200
MC/DC0%0/2
builtin::blessed($_) and $_->isa("Graph::MoreUtils::Smooth::Intermediate")
builtin::blessed($_) $_->isa("Graph::MoreUtils::Smooth::Intermediate")
Truth table33%1/3
A and B
A= builtin::blessed($_)B= $_->isa("Graph::MoreUtils::Smooth::Intermediate")
ABresult
0X0
100
111
14 $_->isa( Graph::MoreUtils::Smooth::Intermediate:: ) ? @$_ : $_ } @_ ];
15 2 return bless $self, $class;
16 }
17  
18 0 ▶sub reverse {
Subroutine reverse: not called CC=1 SCAR=6.9
Pod undocumented
19 0 my( $self ) = @_;
20 0 @$self = reverse @$self;
21 0 return $self;
22 }
23  
24 9 1;
« MoreUtils/SSSR.pm ↑ Summary MoreUtils.pm »