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