Perlito5X/Test2/Event/Skip.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 39 CC 2 SCAR 10.6
CC
2
Cov
0%
summary
6.0
BEGIN
2.0
init
2.0
CRAP 2.9
1 package Test2::Event::Skip;
2 use strict;
3 use warnings;
4  
5 our $VERSION = '1.302073';
6  
7  
8 BEGIN { require Test2::Event::Ok; our @ISA = qw(Test2::Event::Ok) }
9 use Test2::Util::HashBase qw{reason};
10  
11 sub init {
12 my $self = shift;
13 $self->SUPER::init;
14 $self->{+EFFECTIVE_PASS} = 1;
15 }
16  
17 sub causes_fail { 0 }
18  
19 sub summary {
20 my $self = shift;
21 my $out = $self->SUPER::summary(@_);
22  
23 if (my $reason = $self->reason) {
24 $out .= " (SKIP: $reason)";
25 }
26 else {
27 $out .= " (SKIP)";
28 }
29  
30 return $out;
31 }
32  
33 1;
34  
35 __END__