| 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 | 156230 | use strict; | |||
| 4 | 4 | ||||||
| 4 | 123 | ||||||
| 4 | 4 | 4 | 19 | use warnings; | |||
| 4 | 5 | ||||||
| 4 | 139 | ||||||
| 5 | 4 | 4 | 18 | use base 'Test2::Require'; | |||
| 4 | 6 | ||||||
| 4 | 2128 | ||||||
| 6 | |||||||
| 7 | # ABSTRACT: Skip a test file unless a C compiler is available | ||||||
| 8 | our $VERSION = '0.14'; # VERSION | ||||||
| 9 | |||||||
| 10 | |||||||
| 11 | sub skip | ||||||
| 12 | { | ||||||
| 13 | 3 | 3 | 0 | 1565 | require ExtUtils::CBuilder; | ||
| 14 | 3 | 50 | 191181 | ExtUtils::CBuilder->new->have_compiler ? undef : 'This test requires a compiler.'; | |||
| 15 | } | ||||||
| 16 | |||||||
| 17 | 1; | ||||||
| 18 | |||||||
| 19 | __END__ |