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 | 2859 | use strict; | |||
5 | 12 | ||||||
5 | 210 | ||||||
4 | 5 | 5 | 57 | use warnings; | |||
5 | 12 | ||||||
5 | 174 | ||||||
5 | |||||||
6 | 5 | 5 | 28 | use parent 'Filesys::Restrict::X::Base'; | |||
5 | 13 | ||||||
5 | 36 | ||||||
7 | |||||||
8 | sub _new { | ||||||
9 | 57 | 57 | 2718 | my ($class, $opdesc, $path) = @_; | |||
10 | |||||||
11 | 57 | 100 | 199 | if (0 != rindex($opdesc, '-', 0)) { | |||
12 | 31 | 61 | $opdesc .= '()'; | ||||
13 | } | ||||||
14 | |||||||
15 | 57 | 212 | return $class->SUPER::_new("Forbidden $opdesc of “$path”"); | ||||
16 | } | ||||||
17 | |||||||
18 | 1; |