builder/MyBuilder.pm

filter: Statementstmt 56.5% 13 / 23 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 47.2% 17 / 36 CC 4 SCAR 23.5
CC
4
Cov
45%
new
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 10.5
« blib/lib/Plack/Handler/Gazelle.pm ↑ Summary blib/lib/Gazelle.pm »
1 package builder::MyBuilder;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use parent qw(Module::Build);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Devel::CheckCompiler 0.04;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub new {
Subroutine new: not called CC=4 SCAR=30.0
Pod undocumented
9 0 my $self = shift;
10 0 my %args = @_;
11 0 ▶ if ( $^O eq 'solaris') {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O eq "solaris") 0 0 0
12 0 print "This module does not support Solaris.\n";
13 0 exit 0;
14 }
15
16 0 ▶ if (check_compile(<<'...', executable => 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, SOCK_CLOEXEC|SOCK_NONBLOCK);\n}\n", "executable", 1)) 0 0 0
17 #ifndef _GNU_SOURCE
18 #define _GNU_SOURCE
19 #endif
20 #include <sys/socket.h>
21  
22 int main(void)
23 {
24 return accept4(0, (void*)0, (void*)0, SOCK_CLOEXEC|SOCK_NONBLOCK);
25 }
26 ...
27 0 ▶ $args{extra_compiler_flags} ||= [];
Condition0%0/2
$args{"extra_compiler_flags"} ||= []
l!l
00
MC/DC0%0/1
$args{"extra_compiler_flags"} ||= []
$args{"extra_compiler_flags"}
Truth table0%0/2
A
A= $args{"extra_compiler_flags"}
Aresult
11
00
28 0 push @{$args{extra_compiler_flags}}, '-DHAVE_ACCEPT4';
29 }
30 0 $self->SUPER::new(%args);
31 }
32  
33  
34 1 1;
« blib/lib/Plack/Handler/Gazelle.pm ↑ Summary blib/lib/Gazelle.pm »