blib/lib/Filesys/Restrict/X/Forbidden.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Filesys::Restrict::X::Forbidden; | ||||||
2 | |||||||
3 | 5 | 5 | 2930 | use strict; | |||
5 | 10 | ||||||
5 | 214 | ||||||
4 | 5 | 5 | 55 | use warnings; | |||
5 | 10 | ||||||
5 | 148 | ||||||
5 | |||||||
6 | 5 | 5 | 23 | use parent 'Filesys::Restrict::X::Base'; | |||
5 | 11 | ||||||
5 | 44 | ||||||
7 | |||||||
8 | sub _new { | ||||||
9 | 57 | 57 | 2679 | my ($class, $opdesc, $path) = @_; | |||
10 | |||||||
11 | 57 | 100 | 193 | if (0 != rindex($opdesc, '-', 0)) { | |||
12 | 31 | 61 | $opdesc .= '()'; | ||||
13 | } | ||||||
14 | |||||||
15 | 57 | 253 | return $class->SUPER::_new("Forbidden $opdesc of “$path”"); | ||||
16 | } | ||||||
17 | |||||||
18 | 1; |