File Coverage

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


line stmt bran cond sub pod time code
1             package TestML;
2              
3 4     4   46636 use TestML::Base;
  4         10  
  4         21  
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 4     4 0 9 my ($self) = @_;
14 4         19 $self->set_default_classes;
15 4         21 $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 4     4 0 7 my ($self) = @_;
25 4 50       20 if (not $self->runtime) {
26 4         2025 require TestML::Runtime::TAP;
27 4         50 $self->{runtime} = 'TestML::Runtime::TAP';
28             }
29 4 50       25 if (not $self->compiler) {
30 4         1494 require TestML::Compiler::Pegex;
31 4         24 $self->{compiler} = 'TestML::Compiler::Pegex';
32             }
33 4 50       21 if (not $self->bridge) {
34 0         0 require TestML::Bridge;
35 0         0 $self->{bridge} = 'TestML::Bridge';
36             }
37 4 50       25 if (not $self->library) {
38 4         1521 require TestML::Library::Standard;
39 4         1465 require TestML::Library::Debug;
40 4         31 $self->{library} = [
41             'TestML::Library::Standard',
42             'TestML::Library::Debug',
43             ];
44             }
45             }
46              
47             1;