File Coverage

blib/lib/TestML1.pm
Criterion Covered Total %
statement 20 20 100.0
branch 6 8 75.0
condition n/a
subroutine 3 3 100.0
pod 0 2 0.0
total 29 33 87.8


line stmt bran cond sub pod time code
1             package TestML1;
2              
3 25     25   85096 use TestML1::Base;
  25         46  
  25         57  
4             our $VERSION = '0.57';
5              
6             has runtime => ();
7             has compiler => ();
8             has bridge => ();
9             has library => ();
10             has testml => ();
11              
12             sub run {
13 23     23 0 60 my ($self) = @_;
14 23         78 $self->set_default_classes;
15 23         92 $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 23     23 0 51 my ($self) = @_;
25 23 50       68 if (not $self->runtime) {
26 23         7185 require TestML1::Runtime::TAP;
27 23         166 $self->{runtime} = 'TestML1::Runtime::TAP';
28             }
29 23 100       96 if (not $self->compiler) {
30 19         6922 require TestML1::Compiler::Pegex;
31 19         88 $self->{compiler} = 'TestML1::Compiler::Pegex';
32             }
33 23 100       101 if (not $self->bridge) {
34 2         511 require TestML1::Bridge;
35 2         8 $self->{bridge} = 'TestML1::Bridge';
36             }
37 23 50       107 if (not $self->library) {
38 23         7382 require TestML1::Library::Standard;
39 23         6529 require TestML1::Library::Debug;
40             $self->{library} = [
41 23         112 'TestML1::Library::Standard',
42             'TestML1::Library::Debug',
43             ];
44             }
45             }
46              
47             1;