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 | 257619 | use strict; | |||
3 | 5 | ||||||
3 | 77 | ||||||
4 | 3 | 3 | 9 | use warnings; | |||
3 | 3 | ||||||
3 | 57 | ||||||
5 | 3 | 3 | 7 | use base 'Test2::Require'; | |||
3 | 3 | ||||||
3 | 807 | ||||||
6 | |||||||
7 | # ABSTRACT: Skip a test file unless FFI::Platypus is available | ||||||
8 | our $VERSION = '0.12'; # VERSION | ||||||
9 | |||||||
10 | |||||||
11 | sub skip | ||||||
12 | { | ||||||
13 | 2 | 50 | 2 | 0 | 18 | eval { require FFI::Platypus; 1 } ? undef : 'This test requires FFI::Platypus.'; | |
2 | 274 | ||||||
0 | |||||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | |||||||
18 | __END__ |