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