| 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
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
| |||||||||||||||||||||
| 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; | |||||||||||||||||||