« corpus/lib/Alien/Build/Plugin/Fetch/Foo.pm
↑ Summary
blib/lib/Alien/Build/Plugin/Extract/Directory.pm »
| 1 | package Test::Alien::CanPlatypus; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use 5.008004; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use Test2::API qw( context ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | # ABSTRACT: Skip a test file unless FFI::Platypus is available | ||||||||||
| 9 | 2 | our $VERSION = '2.88'; # VERSION | |||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | sub skip | ||||||||||
| 13 | 2 | ▶ | { | ||||||||
|
Subroutine
skip: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 14 | 2 | ▶ | eval { require FFI::Platypus; 1 } ? undef : 'This test requires FFI::Platypus.'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | sub import | ||||||||||
| 18 | 1 | ▶ | { | ||||||||
|
Subroutine
import: called CC=2 SCAR=10.1
| |||||||||||
| 19 | 1 | my $skip = __PACKAGE__->skip; | |||||||||
| 20 | 1 | ▶ | return unless defined $skip; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | |||||||||||
| 22 | 0 | my $ctx = context(); | |||||||||
| 23 | 0 | $ctx->plan(0, SKIP => $skip); | |||||||||
| 24 | 0 | $ctx->release; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 2 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||