blib/lib/Test/Alien/CanCompile.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | 1 | 2 | 50.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 16 | 18 | 88.8 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test::Alien::CanCompile; | ||||||
2 | |||||||
3 | 4 | 4 | 136413 | use strict; | |||
4 | 4 | ||||||
4 | 84 | ||||||
4 | 4 | 4 | 11 | use warnings; | |||
4 | 5 | ||||||
4 | 89 | ||||||
5 | 4 | 4 | 11 | use base 'Test2::Require'; | |||
4 | 3 | ||||||
4 | 1561 | ||||||
6 | |||||||
7 | # ABSTRACT: Skip a test file unless a C compiler is available | ||||||
8 | our $VERSION = '0.12'; # VERSION | ||||||
9 | |||||||
10 | |||||||
11 | sub skip | ||||||
12 | { | ||||||
13 | 3 | 3 | 0 | 1194 | require ExtUtils::CBuilder; | ||
14 | 3 | 50 | 172355 | ExtUtils::CBuilder->new->have_compiler ? undef : 'This test requires a compiler.'; | |||
15 | } | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |