blib/lib/Test/Unit/Listener.pm

filter: Statementstmt 50.0% 2 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 66.6% 4 / 6 CC 1 SCAR 1.4
CC
1
Cov
50%
BEGIN
1.3
BEGIN
1.0
CRAP 1.1
« blib/lib/Test/Unit/Error.pm ↑ Summary blib/lib/Test/Unit/Procedural.pm »
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__
« blib/lib/Test/Unit/Error.pm ↑ Summary blib/lib/Test/Unit/Procedural.pm »