File Coverage

blib/lib/Test/Alien/CanCompileCpp.pm
Criterion Covered Total %
statement 13 13 100.0
branch 1 2 50.0
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 19 21 90.4


line stmt bran cond sub pod time code
1             package Test::Alien::CanCompileCpp;
2              
3 2     2   225760 use strict;
  2         9  
  2         69  
4 2     2   13 use warnings;
  2         4  
  2         66  
5 2     2   14 use base 'Test2::Require';
  2         8  
  2         985  
6 2     2   1669 use ExtUtils::CBuilder 0.27;
  2         127688  
  2         164  
7              
8             # ABSTRACT: Skip a test file unless a C++ compiler is available
9             our $VERSION = '1.01'; # VERSION
10              
11              
12             sub skip
13             {
14 2 50   2 0 50 ExtUtils::CBuilder->new->have_cplusplus ? undef : 'This test requires a compiler.';
15             }
16              
17             1;
18              
19             __END__