blib/lib/Devel/StrictMode.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 3 SCAR 6.2
CC
3
Cov
100%
BEGIN
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
↑ Summary
1 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Exporter ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 package Devel::StrictMode;
8  
9 2 our $AUTHORITY = 'cpan:TOBYINK';
10 2 our $VERSION = '0.003';
11 2 our @ISA = qw( Exporter );
12 2 our @EXPORT = qw( STRICT );
13 2 our @EXPORT_OK = qw( LAX );
14  
15 2 ▶BEGIN {
Subroutine BEGIN: called CC=3 SCAR=11.0
16 2 my $strict = 0;
17 $ENV{$_} && $strict++
18 2 ▶ for qw(
Branch: 1 branch
BranchTrueFalseTotal
$ENV{$_} and ++$strict 2 6 8
19 EXTENDED_TESTING
20 AUTHOR_TESTING
21 RELEASE_TESTING
22 PERL_STRICT
23 );
24
25 2 eval "
26 sub STRICT () { !! $strict }
27 sub LAX () { ! $strict }
28 ";
29 };
30  
31 2 1;
32  
33 __END__
↑ Summary