test-data/lib/Local/NoImport.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« test-data/lib/Local/Explodes.pm ↑ Summary test-data/lib/Local/SymbolInExport.pm »
1 package Local::NoImport;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = '1.00';
7  
8 # Intentionally defines no import() method and no exports. Calling
9 # `use Local::NoImport qw( ... )` therefore makes Perl emit its "Attempt to
10 # call undefined/missing import method" diagnostic. t/Sandbox.t uses this to
11 # verify App::perlimports::Sandbox suppresses that trial-load noise, whatever
12 # wording the running Perl uses for the warning (see GH #181).
13  
14 2 1;
« test-data/lib/Local/Explodes.pm ↑ Summary test-data/lib/Local/SymbolInExport.pm »