line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TestML; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
6216
|
use TestML::Base; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
10
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.49'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has runtime => (); |
7
|
|
|
|
|
|
|
has compiler => (); |
8
|
|
|
|
|
|
|
has bridge => (); |
9
|
|
|
|
|
|
|
has library => (); |
10
|
|
|
|
|
|
|
has testml => (); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub run { |
13
|
2
|
|
|
2
|
0
|
5
|
my ($self) = @_; |
14
|
2
|
|
|
|
|
9
|
$self->set_default_classes; |
15
|
2
|
|
|
|
|
15
|
$self->runtime->new( |
16
|
|
|
|
|
|
|
compiler => $self->compiler, |
17
|
|
|
|
|
|
|
bridge => $self->bridge, |
18
|
|
|
|
|
|
|
library => $self->library, |
19
|
|
|
|
|
|
|
testml => $self->testml, |
20
|
|
|
|
|
|
|
)->run; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub set_default_classes { |
24
|
2
|
|
|
2
|
0
|
5
|
my ($self) = @_; |
25
|
2
|
50
|
|
|
|
11
|
if (not $self->runtime) { |
26
|
2
|
|
|
|
|
1122
|
require TestML::Runtime::TAP; |
27
|
2
|
|
|
|
|
23
|
$self->{runtime} = 'TestML::Runtime::TAP'; |
28
|
|
|
|
|
|
|
} |
29
|
2
|
50
|
|
|
|
11
|
if (not $self->compiler) { |
30
|
2
|
|
|
|
|
1019
|
require TestML::Compiler::Pegex; |
31
|
2
|
|
|
|
|
15
|
$self->{compiler} = 'TestML::Compiler::Pegex'; |
32
|
|
|
|
|
|
|
} |
33
|
2
|
100
|
|
|
|
14
|
if (not $self->bridge) { |
34
|
1
|
|
|
|
|
513
|
require TestML::Bridge; |
35
|
1
|
|
|
|
|
5
|
$self->{bridge} = 'TestML::Bridge'; |
36
|
|
|
|
|
|
|
} |
37
|
2
|
50
|
|
|
|
12
|
if (not $self->library) { |
38
|
2
|
|
|
|
|
869
|
require TestML::Library::Standard; |
39
|
2
|
|
|
|
|
913
|
require TestML::Library::Debug; |
40
|
2
|
|
|
|
|
16
|
$self->{library} = [ |
41
|
|
|
|
|
|
|
'TestML::Library::Standard', |
42
|
|
|
|
|
|
|
'TestML::Library::Debug', |
43
|
|
|
|
|
|
|
]; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |