File Coverage

inc/TestML.pm
Criterion Covered Total %
statement 20 20 100.0
branch 4 8 50.0
condition n/a
subroutine 3 3 100.0
pod 0 2 0.0
total 27 33 81.8


line stmt bran cond sub pod time code
1             package TestML;
2              
3 3     3   7528 use TestML::Base;
  3         7  
  3         15  
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 3     3 0 6 my ($self) = @_;
14 3         16 $self->set_default_classes;
15 3         23 $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 3     3 0 6 my ($self) = @_;
25 3 50       14 if (not $self->runtime) {
26 3         1174 require TestML::Runtime::TAP;
27 3         39 $self->{runtime} = 'TestML::Runtime::TAP';
28             }
29 3 50       18 if (not $self->compiler) {
30 3         1586 require TestML::Compiler::Pegex;
31 3         227 $self->{compiler} = 'TestML::Compiler::Pegex';
32             }
33 3 50       30 if (not $self->bridge) {
34 3         1122 require TestML::Bridge;
35 3         14 $self->{bridge} = 'TestML::Bridge';
36             }
37 3 50       14 if (not $self->library) {
38 3         1218 require TestML::Library::Standard;
39 3         1073 require TestML::Library::Debug;
40 3         20 $self->{library} = [
41             'TestML::Library::Standard',
42             'TestML::Library::Debug',
43             ];
44             }
45             }
46              
47             1;