| 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 | 194527 | use strict; | |||
| 2 | 8 | ||||||
| 2 | 47 | ||||||
| 4 | 2 | 2 | 9 | use warnings; | |||
| 2 | 3 | ||||||
| 2 | 42 | ||||||
| 5 | 2 | 2 | 7 | use base 'Test2::Require'; | |||
| 2 | 4 | ||||||
| 2 | 725 | ||||||
| 6 | 2 | 2 | 1296 | use ExtUtils::CBuilder 0.27; | |||
| 2 | 100466 | ||||||
| 2 | 163 | ||||||
| 7 | |||||||
| 8 | # ABSTRACT: Skip a test file unless a C++ compiler is available | ||||||
| 9 | our $VERSION = '1.02'; # 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__ |