blib/lib/Test/Alien/CanPlatypus.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 12 | 91.6 |
branch | 1 | 2 | 50.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 16 | 19 | 84.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test::Alien::CanPlatypus; | ||||||
2 | |||||||
3 | 3 | 3 | 275735 | use strict; | |||
3 | 5 | ||||||
3 | 83 | ||||||
4 | 3 | 3 | 10 | use warnings; | |||
3 | 3 | ||||||
3 | 63 | ||||||
5 | 3 | 3 | 10 | use base 'Test2::Require'; | |||
3 | 3 | ||||||
3 | 825 | ||||||
6 | |||||||
7 | # ABSTRACT: Skip a test file unless FFI::Platypus is available | ||||||
8 | our $VERSION = '0.14'; # VERSION | ||||||
9 | |||||||
10 | |||||||
11 | sub skip | ||||||
12 | { | ||||||
13 | 2 | 50 | 2 | 0 | 20 | eval { require FFI::Platypus; 1 } ? undef : 'This test requires FFI::Platypus.'; | |
2 | 281 | ||||||
0 | |||||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | |||||||
18 | __END__ |