blib/arch/XS/Framework.pm

filter: Statementstmt 82.3% 28 / 34 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod n/a totaltotal 82.6% 38 / 46 CC 1 SCAR 1.0
CC
1
Cov
81%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/arch/XS/Framework/ParseXS.pm ↑ Summary src/xs/Array.h »
1 package XS::Framework;
2 37 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 37 ▶use Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 37 ▶use next::XS;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 37 ▶use XS::libpanda;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 37 ▶use XS::ErrorCode();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 37 ▶use XS::STL::ErrorCode();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 37 ▶use XS::STL::ErrorCategory();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 37 our $VERSION = '1.6.2';
11  
12 # threads::shared doesn't respect the fact that PL_destroyhook might be in use by other modules and doesn't proxy call to next hook
13 # so that we must hook after threads::shared
14 37 ▶if ($Config{useithreads}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($XS::Framework::Config{"useithreads"}) 0 37 37
15 0 require threads;
16 0 require threads::shared;
17 37 ▶ no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
18 0 my $orig_threads_create = \&threads::create;
19 0 ▶ *threads::create = sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
20 0 __at_thread_create();
21 0 goto &$orig_threads_create;
22 0 };
23 }
24  
25 37 XS::Loader::load();
26  
27 37 ▶END {
Subroutine END: called CC=1 SCAR=0.0
28 37 __at_perl_destroy();
29 }
30  
31 37 1;
« blib/arch/XS/Framework/ParseXS.pm ↑ Summary src/xs/Array.h »