test-data/lib/Local/ImportException.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 84.6% 22 / 26 CC 3 SCAR 7.0
CC
3
Cov
95%
import
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/App/perlimports/Sorter.pm ↑ Summary blib/lib/App/perlimports/Config.pm »
1 package Local::ImportException;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 require Exporter;
7 1 our @ISA = qw( Exporter );
8 1 our @EXPORT_OK = qw( exceptional );
9  
10 4 ▶sub import {
Subroutine import: called CC=3 SCAR=11.0
11 4 my $pkg = shift;
12 4 my $first_arg = shift;
13 4 ▶ if ( $first_arg && $first_arg eq 'exceptional' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($first_arg and $first_arg eq "exceptional") 2 2 4
Condition66%2/3
$first_arg and $first_arg eq "exceptional"
!ll&&!rl&&r
202
MC/DC50%1/2
$first_arg and $first_arg eq "exceptional"
$first_arg $first_arg eq "exceptional"
Truth table66%2/3
A and B
A= $first_argB= $first_arg eq "exceptional"
ABresult
0X0
100
111
14 2 die 'oof';
15 }
16 }
17  
18 0 ▶sub exceptional { }
Subroutine exceptional: not called CC=1 SCAR=0.0
Pod undocumented
19  
20 1 1;
« blib/lib/App/perlimports/Sorter.pm ↑ Summary blib/lib/App/perlimports/Config.pm »