blib/lib/Module/Setup/Path/Dir.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 90.3% 28 / 31 CC 2 SCAR 2.6
CC
2
Cov
95%
stringify
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Module/Setup/Path/File.pm ↑ Summary blib/lib/Module/Setup/Plugin/Template.pm »
1 package Module::Setup::Path::Dir;
2 47 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 47 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 47 ▶use base 'Path::Class::Dir';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 47 ▶use Module::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6593 ▶sub stringify {
Subroutine stringify: called CC=2 SCAR=7.1
Pod documented
9 6593 my($self) = @_;
10 6593 ▶ return $self->{__stringify_cache} ||= $self->SUPER::stringify;
Condition66%2/3
$self->{"__stringify_cache"} ||= $self->SUPER::stringify
l!l&&r!l&&!r
356530280
MC/DC0%0/2
$self->{"__stringify_cache"} ||= $self->SUPER::stringify
$self->{"__stringify_cache"} $self->SUPER::stringify
Truth table66%2/3
A ||= B
A= $self->{"__stringify_cache"}B= $self->SUPER::stringify
ABresult
1X1
011
000
11 }
12  
13 381 ▶sub mkpath {
Subroutine mkpath: called CC=1 SCAR=0.0
Pod documented
14 381 my $self = shift;
15 381 Module::Setup::log($self, "Creating directory $self");
16 381 $self->Path::Class::Dir::mkpath(@_);
17 }
18 47 1;
« blib/lib/Module/Setup/Path/File.pm ↑ Summary blib/lib/Module/Setup/Plugin/Template.pm »