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 | 217792 | use strict; | |||
2 | 19 | ||||||
2 | 65 | ||||||
4 | 2 | 2 | 11 | use warnings; | |||
2 | 5 | ||||||
2 | 74 | ||||||
5 | 2 | 2 | 10 | use base 'Test2::Require'; | |||
2 | 4 | ||||||
2 | 848 | ||||||
6 | 2 | 2 | 1676 | use ExtUtils::CBuilder 0.27; | |||
2 | 122044 | ||||||
2 | 179 | ||||||
7 | |||||||
8 | # ABSTRACT: Skip a test file unless a C++ compiler is available | ||||||
9 | our $VERSION = '1.03'; # VERSION | ||||||
10 | |||||||
11 | |||||||
12 | sub skip | ||||||
13 | { | ||||||
14 | 2 | 50 | 2 | 0 | 81 | ExtUtils::CBuilder->new->have_cplusplus ? undef : 'This test requires a compiler.'; | |
15 | } | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |