blib/lib/Test/Alien/CanPlatypus.pm

filter: Statementstmt 85.7% 18 / 21 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 81.2% 26 / 32 CC 3 SCAR 5.3
CC
3
Cov
80%
import
2.7
skip
2.0
BEGIN
1.0
CRAP 1.7
« 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
BranchTrueFalseTotal
eval { do { require FFI::Platypus; 1 } } ? : 2 0 2
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
BranchTrueFalseTotal
unless defined $skip 1 0 1
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__
« corpus/lib/Alien/Build/Plugin/Fetch/Foo.pm ↑ Summary blib/lib/Alien/Build/Plugin/Extract/Directory.pm »