File Coverage

blib/lib/Require/HookChain/test/fail.pm
Criterion Covered Total %
statement 0 5 0.0
branch n/a
condition n/a
subroutine 0 2 0.0
pod 0 2 0.0
total 0 9 0.0


line stmt bran cond sub pod time code
1             ## no critic: TestingAndDebugging::RequireUseStrict
2             package Require::HookChain::test::fail;
3              
4             # IFUNBUILT
5             # use strict;
6             # use warnings;
7             # END IFUNBUILT
8              
9             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10             our $DATE = '2023-12-05'; # DATE
11             our $DIST = 'Require-HookChain'; # DIST
12             our $VERSION = '0.016'; # VERSION
13              
14             sub new {
15 0     0 0   my ($class) = @_;
16 0           bless {}, $class;
17             }
18              
19             sub Require::HookChain::test::fail::INC {
20 0     0 0   my ($self, $r) = @_;
21              
22 0           my $filename = $r->filename;
23 0           die "Can't locate $filename: test::fail";
24             }
25              
26             1;
27             # ABSTRACT: Always fail a module loading
28              
29             __END__