line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SmokeRunner::Multi::Runner; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:YANICK'; |
3
|
|
|
|
|
|
|
#ABSTRACT: Base class for running test sets |
4
|
|
|
|
|
|
|
$SmokeRunner::Multi::Runner::VERSION = '0.21'; |
5
|
6
|
|
|
6
|
|
21768
|
use strict; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
147
|
|
6
|
6
|
|
|
6
|
|
29
|
use warnings; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
158
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
31
|
use base 'Class::Accessor::Fast'; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
2681
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->mk_ro_accessors( 'set' ); |
10
|
|
|
|
|
|
|
|
11
|
6
|
|
|
6
|
|
11512
|
use SmokeRunner::Multi::Validate qw( validate TEST_SET_TYPE ); |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
50
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
my $spec = { set => TEST_SET_TYPE, |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
sub new |
18
|
|
|
|
|
|
|
{ |
19
|
11
|
|
|
11
|
1
|
2244
|
my $class = shift; |
20
|
11
|
|
|
|
|
632
|
my %p = validate( @_, $spec ); |
21
|
|
|
|
|
|
|
|
22
|
10
|
|
|
|
|
88
|
return bless \%p, $class; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub run_tests |
27
|
|
|
|
|
|
|
{ |
28
|
1
|
|
|
1
|
1
|
9
|
die "The run_tests() method must be overridden in a subclass.\n" |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |