builder/MyBuilder.pm

filter: Statementstmt 69.2% 18 / 26 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 63.1% 24 / 38 CC 3 SCAR 15.4
CC
3
Cov
60%
new
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.7
↑ Summary Build »
1 package builder::MyBuilder;
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 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use parent qw(Module::Build);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Devel::CheckCompiler 0.04;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub new {
10 0 ▶ my $self = shift;
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
11 0 ▶ if ($^O ne 'linux') {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O ne "linux") 0 0 0
12 0 print "This module only supports linux.\n";
13 0 exit 0;
14 }
15 0 ▶ if (check_compile(<<'...', executable => 1) != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (check_compile("#ifndef _GNU_SOURCE\n#define _GNU_SOURCE\n#endif\n#include <sys/socket.h>\n\nint main(void)\n{\n return accept4(0, (void*)0, (void*)0, 0);\n}\n", "executable", 1) != 1) 0 0 0
16 #ifndef _GNU_SOURCE
17 #define _GNU_SOURCE
18 #endif
19 #include <sys/socket.h>
20  
21 int main(void)
22 {
23 return accept4(0, (void*)0, (void*)0, 0);
24 }
25 ...
26 0 print "This module only supports linux 2.6.28+ and glibc 2.10+.\n";
27 0 exit 0;
28 }
29 0 $self->SUPER::new(@_);
30 }
31  
32  
33 1 1;
34  
↑ Summary Build »