XS/MM.pm

filter: Statementstmt 44.1% 15 / 34 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 1 totaltotal 40.4% 19 / 47 CC 4 SCAR 17.5
CC
4
Cov
38%
hook_after_c2xs
12.0
import
6.0
BEGIN
1.0
CRAP 5.8
« XS.pm ↑ Summary
1 package InlineX::XS::MM;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $VERSION = 0.01;
6  
7 1 require InlineX::XS;
8 1 ▶use ExtUtils::MakeMaker;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use ExtUtils::Manifest 'maniadd';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub import {
Subroutine import: not called CC=2 SCAR=17.9
12 0 my $class = shift;
13 0 my @args = @_;
14  
15 0 $InlineX::XS::PACKAGE = $InlineX::XS::PACKAGE = 1;
16 0 $InlineX::XS::PACKAGER = $InlineX::XS::PACKAGER = 'InlineX::XS::MM';
17  
18 0 warn 'Setting PACKAGE and PACKAGER options';
19 0 unshift(@INC, 'lib');
20 0 ▶ chdir($args[0]) if defined $args[0];
Branch: 1 branch
BranchTrueFalseTotal
if defined $args[0] 0 0 0
21 0 return 1;
22 }
23  
24 0 ▶sub hook_after_c2xs {
Subroutine hook_after_c2xs: not called CC=3 SCAR=24.8
Pod undocumented
25 0 my $class = shift;
26 0 my $pkg = shift;
27  
28 0 warn 'Adding XS and C files to MANIFEST';
29 0 $pkg =~ /([^:]+)$/;
30 0 ▶ my $xs_file = $1 or die;
Branch: 1 branch
BranchTrueFalseTotal
my $xs_file = $1 or die 0 0 0
31 0 my $c_file = "src/$xs_file.c"; # no File::Spec => MANIFEST
32 0 $xs_file .= '.xs';
33 0 my $args = {
34 $xs_file => 'Added by '.__PACKAGE__,
35 $c_file => 'Added by '.__PACKAGE__,
36 };
37 0 ▶ $args->{'INLINE.h'} = 'Added by '.__PACKAGE__
Branch: 1 branch
BranchTrueFalseTotal
if -e "INLINE.h" 0 0 0
38 if -e 'INLINE.h';
39  
40 0 maniadd($args);
41 0 return 1;
42 }
43  
44 1 1;
45  
« XS.pm ↑ Summary