Maker/Path/Root.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 0.0% 0 / 4 totaltotal 83.7% 31 / 37 CC 2 SCAR 2.6
CC
2
Cov
96%
text
2.0
str
2.0
BEGIN
1.0
CRAP 1.3
« Maker/Path/Parent.pm ↑ Summary Maker/Path/This.pm »
1 package Config::Maker::Path::Root;
2  
3 9 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 9 ▶use Config::Maker::Path;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 9 our @ISA = qw(Config::Maker::Path);
10  
11 22 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
12 22 shift->bhash([qw/-tail/], @_);
13 }
14  
15 12 ▶sub match {
Subroutine match: called CC=1 SCAR=0.0
Pod undocumented
16 12 $Config::Maker::Eval::config->{root};
17 }
18  
19 # Inherited find...
20  
21 0 ▶sub text { '/' };
Subroutine text: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 32 ▶sub str {
Subroutine str: called CC=2 SCAR=6.9
Pod undocumented
24 32 my ($self) = @_;
25 32 ▶ '/' . ($self->{-tail} ? $self->{-tail}->str : '');
Branch: 1 branch
BranchTrueFalseTotal
$self->{'-tail'} ? : 14 18 32
26 }
27  
28 9 1;
29  
30 __END__
« Maker/Path/Parent.pm ↑ Summary Maker/Path/This.pm »