blib/lib/Test2/Require.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 100% 4 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 89.1% 33 / 37 CC 4 SCAR 8.6
CC
4
Cov
93%
import
4.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« blib/lib/Test2/Compare/Event.pm ↑ Summary blib/lib/Test2/Tools/Encoding.pm »
1 package Test2::Require;
2 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 17 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 17 our $VERSION = '1.302226';
6  
7 17 ▶use Test2::API qw/context/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 17 ▶use Carp qw/croak/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶sub skip {
Subroutine skip: called CC=1 SCAR=0.0
Pod undocumented
11 1 my $class = shift;
12 1 croak "Class '$class' needs to implement 'skip()'";
13 }
14  
15 8 ▶sub import {
Subroutine import: called CC=4 SCAR=14.0
16 8 my $class = shift;
17 8 ▶ return if $class eq __PACKAGE__;
Branch: 1 branch
BranchTrueFalseTotal
if $class eq __PACKAGE__ 1 7 8
18  
19 7 my $skip = $class->skip(@_);
20 7 ▶ return unless defined $skip;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $skip 4 3 7
21  
22 3 my $ctx = context();
23 3 ▶ $ctx->plan(0, SKIP => $skip || "No reason given.");
Condition50%1/2
$skip || 'No reason given.'
l!l
30
MC/DC0%0/1
$skip || 'No reason given.'
$skip
Truth table50%1/2
A
A= $skip
Aresult
11
00
24 0 $ctx->release;
25 }
26  
27 17 1;
28  
29 __END__
« blib/lib/Test2/Compare/Event.pm ↑ Summary blib/lib/Test2/Tools/Encoding.pm »