blib/lib/Test/Unit/Decorator.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 7 totaltotal 0.0% 0 / 39 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
new
2.0
basic_run
2.0
CRAP 2.0
1 package Test::Unit::Decorator;
2 BEGIN {
3 $Test::Unit::Decorator::VERSION = '0.25_1325'; # added by dist-tools/SetVersion.pl
4 }
5 use strict;
6  
7 use base qw(Test::Unit::Test);
8  
9 sub new {
10 my $class = shift;
11 my ($fTest) = @_;
12 return bless { _fTest => $fTest }, $class;
13 }
14  
15 sub basic_run {
16 my $self = shift;
17 my ($result) = @_;
18 $self->{_fTest}->run($result);
19 }
20  
21 sub count_test_cases() {
22 my $self = shift;
23 return $self->{_fTest}->count_test_cases();
24 }
25 sub run {
26 my $self = shift;
27 my ($result) = @_;
28 $self->basic_run($result);
29 }
30  
31 sub to_string {
32 my $self = shift;
33 "$self->{_fTest}";
34 }
35  
36 sub get_test {
37 my $self = shift;
38 return $self->{_fTest};
39 }
40  
41 1;
42 __END__