Product.pm

filter: Statementstmt 100% 27 / 27 Branchbran 50.0% 2 / 4 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 86.0% 37 / 43 SCAR 0.0
CC
1
Cov
88%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Product/PP.pm ↑ Summary
1 package Set::Product;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Set::Product::PP;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 our $VERSION = '0.01';
11 2 $VERSION = eval $VERSION;
12  
13 2 our @EXPORT_OK = qw(product);
14  
15 my $want_xs = ! $ENV{SET_PRODUCT_PP} and ! $ENV{PURE_PERL}
16 2 ▶ and eval "use Set::Product::XS; 1";
Subroutine BEGIN: called CC=1 SCAR=0.4
Branch: 1 branch
BranchTrueFalseTotal
my $want_xs = !$ENV{"SET_PRODUCT_PP"} and not $ENV{"PURE_PERL"} and eval "use Set::Product::XS; 1" 2 0 2
Condition33%1/3
my $want_xs = !$ENV{"SET_PRODUCT_PP"} and not $ENV{"PURE_PERL"}
!ll&&!rl&&r
002
MC/DC0%0/2
my $want_xs = !$ENV{"SET_PRODUCT_PP"} and not $ENV{"PURE_PERL"}
my $want_xs = !$ENV{"SET_PRODUCT_PP"} not $ENV{"PURE_PERL"}
Truth table33%1/3
not(A) and not(B)
A= my $want_xs = !$ENV{"SET_PRODUCT_PP"}B= not $ENV{"PURE_PERL"}
ABresult
0X0
100
111
17  
18 3 ▶no warnings qw(redefine);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 2 ▶*product = $want_xs
Branch: 1 branch
BranchTrueFalseTotal
$want_xs ? : 2 0 2
21 ? \&Set::Product::XS::product
22 : \&Set::Product::PP::product;
23  
24  
25 2 1;
26  
27 __END__
« Product/PP.pm ↑ Summary