t/module_build/Build.PL

filter: Statementstmt 91.3% 21 / 23 Branchbran 50.0% 4 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 83.3% 30 / 36 CC 1 SCAR 0.0
CC
1
Cov
81%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« t/makemaker/Makefile.PL ↑ Summary
1 #!/usr/bin/perl -w
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use blib '../..';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Module::Build;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use ExtUtils::CppGuess;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use ExtUtils::ParseXS;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 my $guess = ExtUtils::CppGuess->new;
10 1 ▶$guess->add_extra_compiler_flags(
Branch: 1 branch
BranchTrueFalseTotal
$guess->iostream_fname =~ /\./ ? : 0 1 1
11 '-DINCLUDE_DOT=' .
12 ($guess->iostream_fname =~ /\./ ? 1 : 0)
13 );
14  
15 # broken on 5.14, on EUPXS 3.04_01 to 3.35
16 1 ▶if ($ExtUtils::ParseXS::VERSION > 3.04) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ExtUtils::ParseXS::VERSION > "3.04") 1 0 1
17 1 ▶ if ($] lt '5.016000') {
Branch: 2 branches
BranchTrueFalseTotal
if ($] lt '5.016000') { } 0 1 1
elsif ($] lt '5.018000') { } 0 1 1
18 0 $guess->add_extra_compiler_flags('-DCLANG_WORKAROUND_514');
19 } elsif ($] lt '5.018000') {
20 0 $guess->add_extra_compiler_flags('-DCLANG_WORKAROUND_516');
21 }
22 }
23  
24 1 my $build = Module::Build->new
25 ( module_name => 'CppGuessTest',
26 dist_abstract => 'a test module',
27 license => 'perl',
28 xs_files => { 'CppGuessTest.xs' => 'lib/CppGuessTest.xs' },
29 $guess->module_build_options,
30 );
31 1 $build->create_build_script;
« t/makemaker/Makefile.PL ↑ Summary