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 blib/lib/Redis/Jet.pm »
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 0 ▶sub new {
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
10 0 my $self = shift;
11 0 ▶ if ( $^O =~ m!(?:MSWin32|cygwin)! ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O =~ /(?:MSWin32|cygwin)/) 0 0 0
12 0 print "This module does not support Windows.\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 <poll.h>\n\nint main(void)\n{\n struct pollfd wfds[1];\n wfds[0].fd = 1;\n wfds[0].events = POLLOUT;\n return poll(wfds, 1, 5000);\n}\n", "executable", 1) != 1) 0 0 0
16 #ifndef _GNU_SOURCE
17 #define _GNU_SOURCE
18 #endif
19 #include <poll.h>
20  
21 int main(void)
22 {
23 struct pollfd wfds[1];
24 wfds[0].fd = 1;
25 wfds[0].events = POLLOUT;
26 return poll(wfds, 1, 5000);
27 }
28 ...
29 0 print "This platform does not support poll(2).\n";
30 0 exit 0;
31 }
32 0 $self->SUPER::new(@_);
33 }
34  
35  
36 1 1;
↑ Summary blib/lib/Redis/Jet.pm »