| 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__ |