t/makemaker/Makefile.PL

filter: Statementstmt 90.9% 20 / 22 Branchbran 50.0% 4 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 82.8% 29 / 35 CC 1 SCAR 0.0
CC
1
Cov
80%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« t/module_build/Build ↑ Summary t/module_build/Build.PL »
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 ExtUtils::MakeMaker;
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  
11 # broken on 5.14, on EUPXS 3.04_01 to 3.35
12 1 ▶if ($ExtUtils::ParseXS::VERSION > 3.04) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ExtUtils::ParseXS::VERSION > "3.04") 1 0 1
13 1 ▶ if ($] lt '5.016000') {
Branch: 2 branches
BranchTrueFalseTotal
if ($] lt '5.016000') { } 0 1 1
elsif ($] lt '5.018000') { } 0 1 1
14 0 $guess->add_extra_compiler_flags('-DCLANG_WORKAROUND_514');
15 } elsif ($] lt '5.018000') {
16 0 $guess->add_extra_compiler_flags('-DCLANG_WORKAROUND_516');
17 }
18 }
19  
20 $guess->add_extra_compiler_flags(
21 1 ▶ '-DINCLUDE_DOT=' .
Branch: 1 branch
BranchTrueFalseTotal
$guess->iostream_fname =~ /\./ ? : 0 1 1
22 ($guess->iostream_fname =~ /\./ ? 1 : 0)
23 );
24  
25 1 WriteMakefile
26 ( NAME => 'CppGuessTest',
27 VERSION_FROM => 'lib/CppGuessTest.pm',
28 PL_FILES => {},
29 $guess->makemaker_options,
30 );
« t/module_build/Build ↑ Summary t/module_build/Build.PL »