builder/MyBuilder.pm

filter: Statementstmt 63.6% 21 / 33 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 87.5% 7 / 8 Podpod 0.0% 0 / 1 totaltotal 54.9% 28 / 51 SCAR 17.4
CC
4
Cov
52%
new
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« blib/lib/EV/Hiredis.pm ↑ Summary _build/lib/MyBuilder.pm »
1 package builder::MyBuilder;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use 5.008005;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use base 'Module::Build::XSUtil';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use File::Which qw(which);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use EV::MakeMaker '$installsitearch';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub new {
11 0 ▶ my ( $class, %args ) = @_;
Subroutine new: not called CC=4 SCAR=30.0
Pod undocumented
12 0 my $self = $class->SUPER::new(
13 %args,
14 generate_ppport_h => 'src/ppport.h',
15 c_source => 'src',
16 xs_files => { 'src/EV__Hiredis.xs' => 'lib/EV/Hiredis.xs' },
17 include_dirs => ['src', 'deps/hiredis', "${installsitearch}/EV", $installsitearch],
18 extra_linker_flags => ["deps/hiredis/libhiredis$Config{lib_ext}"],
19 );
20  
21 0 my $make;
22 0 ▶ if ($^O =~ m/bsd$/ && $^O !~ m/gnukfreebsd$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O =~ /bsd$/ and not $^O =~ /gnukfreebsd$/) { } 0 0 0
Condition0%0/3
$^O =~ /bsd$/ and not $^O =~ /gnukfreebsd$/
!ll&&!rl&&r
000
MC/DC0%0/2
$^O =~ /bsd$/ and not $^O =~ /gnukfreebsd$/
$^O =~ /bsd$/ not $^O =~ /gnukfreebsd$/
Truth table0%0/3
A and not(B)
A= $^O =~ /bsd$/B= not $^O =~ /gnukfreebsd$/
ABresult
0X0
100
111
23 0 my $gmake = which('gmake');
24 0 ▶ unless (defined $gmake) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $gmake) 0 0 0
25 0 print "'gmake' is necessary for BSD platform.\n";
26 0 exit 0;
27 }
28 0 $make = $gmake;
29 } else {
30 0 $make = $Config{make};
31 }
32  
33 0 $self->do_system($make, '-C', 'deps/hiredis', 'static');
34 0 return $self;
35 }
36  
37 1 1;
« blib/lib/EV/Hiredis.pm ↑ Summary _build/lib/MyBuilder.pm »