blib/lib/Filesys/Restrict/X/Forbidden.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 20 / 20 CC 2 SCAR 3.4
CC
2
Cov
100%
_new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Filesys/Restrict.pm ↑ Summary easyxs/easyxs_numeric.h »
1 package Filesys::Restrict::X::Forbidden;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 ▶use parent 'Filesys::Restrict::X::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 57 ▶sub _new {
Subroutine _new: called CC=2 SCAR=6.9
9 57 my ($class, $opdesc, $path) = @_;
10  
11 57 ▶ if (0 != rindex($opdesc, '-', 0)) {
Branch: 1 branch
BranchTrueFalseTotal
if (0 != rindex($opdesc, "-", 0)) 31 26 57
12 31 $opdesc .= '()';
13 }
14  
15 57 return $class->SUPER::_new("Forbidden $opdesc of “$path”");
16 }
17  
18 5 1;
« blib/lib/Filesys/Restrict.pm ↑ Summary easyxs/easyxs_numeric.h »