| 1 | package Test::Unit::Listener; | ||
| 2 | BEGIN { | ||
| 3 | 3 | ▶ | $Test::Unit::Listener::VERSION = '0.25_1325'; # added by dist-tools/SetVersion.pl |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | } | ||
| 5 | 3 | ▶ | use Test::Unit::Loader; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 6 | use Carp; | ||
| 7 | use strict; | ||
| 8 | |||
| 9 | sub new { | ||
| 10 | my $class = shift; | ||
| 11 | croak "call to abstract constructor ${class}::new"; | ||
| 12 | } | ||
| 13 | |||
| 14 | sub start_suite { | ||
| 15 | my $self = shift; | ||
| 16 | my $class = ref($self); | ||
| 17 | my ($suite) = @_; | ||
| 18 | croak "call to abstract method ${class}::start_suite"; | ||
| 19 | } | ||
| 20 | |||
| 21 | sub start_test { | ||
| 22 | my $self = shift; | ||
| 23 | my $class = ref($self); | ||
| 24 | my ($test) = @_; | ||
| 25 | croak "call to abstract method ${class}::start_test"; | ||
| 26 | } | ||
| 27 | |||
| 28 | sub add_error { | ||
| 29 | my $self = shift; | ||
| 30 | my $class = ref($self); | ||
| 31 | my ($test, $exception) = @_; | ||
| 32 | croak "call to abstract method ${class}::add_error"; | ||
| 33 | } | ||
| 34 | |||
| 35 | sub add_failure { | ||
| 36 | my $self = shift; | ||
| 37 | my $class = ref($self); | ||
| 38 | my ($test, $exception) = @_; | ||
| 39 | croak "call to abstract method ${class}::add_failure"; | ||
| 40 | } | ||
| 41 | |||
| 42 | sub end_test { | ||
| 43 | my $self = shift; | ||
| 44 | my $class = ref($self); | ||
| 45 | my ($test) = @_; | ||
| 46 | croak "call to abstract method ${class}::end_test"; | ||
| 47 | } | ||
| 48 | |||
| 49 | 1; | ||
| 50 | __END__ | ||