File Coverage

blib/lib/Test/Unit/Listener.pm
Criterion Covered Total %
statement 9 31 29.0
branch n/a
condition n/a
subroutine 3 9 33.3
pod 0 6 0.0
total 12 46 26.0


line stmt bran cond sub pod time code
1             package Test::Unit::Listener;
2 2     2   1987 use Test::Unit::Loader;
  2         7  
  2         53  
3 2     2   12 use Carp;
  2         4  
  2         124  
4 2     2   14 use strict;
  2         6  
  2         619  
5              
6             sub new {
7 0     0 0   my $class = shift;
8 0           croak "call to abstract constructor ${class}::new";
9             }
10              
11             sub start_suite {
12 0     0 0   my $self = shift;
13 0           my $class = ref($self);
14 0           my ($suite) = @_;
15 0           croak "call to abstract method ${class}::start_suite";
16             }
17              
18             sub start_test {
19 0     0 0   my $self = shift;
20 0           my $class = ref($self);
21 0           my ($test) = @_;
22 0           croak "call to abstract method ${class}::start_test";
23             }
24              
25             sub add_error {
26 0     0 0   my $self = shift;
27 0           my $class = ref($self);
28 0           my ($test, $exception) = @_;
29 0           croak "call to abstract method ${class}::add_error";
30             }
31              
32             sub add_failure {
33 0     0 0   my $self = shift;
34 0           my $class = ref($self);
35 0           my ($test, $exception) = @_;
36 0           croak "call to abstract method ${class}::add_failure";
37             }
38            
39             sub end_test {
40 0     0 0   my $self = shift;
41 0           my $class = ref($self);
42 0           my ($test) = @_;
43 0           croak "call to abstract method ${class}::end_test";
44             }
45            
46             1;
47             __END__