blib/lib/bareword/filehandles.pm

filter: Statementstmt 100% 25 / 25 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 97.1% 34 / 35 CC 1 SCAR 0.0
CC
1
Cov
96%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« filehandles.xs ↑ Summary
1 package bareword::filehandles;
2 # ABSTRACT: disables bareword filehandles
3 1 $bareword::filehandles::VERSION = '0.007';
4 1 ▶{ use 5.008001; }
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use if "$]" < 5.012, 'Lexical::SealRequireHints';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use B::Hooks::OP::Check;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use XSLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 XSLoader::load(
13 __PACKAGE__,
14 # we need to be careful not to touch $VERSION at compile time, otherwise
15 # DynaLoader will assume it's set and check against it, which will cause
16 # fail when being run in the checkout without dzil having set the actual
17 # $VERSION
18 1 ▶ exists $bareword::filehandles::{VERSION} ? ${ $bareword::filehandles::{VERSION} } : (),
Branch: 1 branch
BranchTrueFalseTotal
exists $bareword::filehandles::{'VERSION'} ? : 1 0 1
19 );
20  
21  
22 479 ▶sub unimport { $^H |= 0x20000; $^H{__PACKAGE__.'/disabled'} = 1 }
Subroutine unimport: called CC=1 SCAR=0.0
23  
24  
25 1 ▶sub import { delete $^H{__PACKAGE__.'/disabled'} }
Subroutine import: called CC=1 SCAR=0.0
26  
27  
28 1 1;
29  
30 __END__
« filehandles.xs ↑ Summary