| 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
Condition33%1/3
my $want_xs = !$ENV{"SET_PRODUCT_PP"} and not $ENV{"PURE_PERL"}
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"}
| |||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 3 | ▶ | no warnings qw(redefine); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 2 | ▶ | *product = $want_xs | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 21 | ? \&Set::Product::XS::product | ||||||||||||||||||||||||||||
| 22 | : \&Set::Product::PP::product; | ||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | 2 | 1; | |||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | __END__ | ||||||||||||||||||||||||||||