| 1 | package TestML1; | ||||||||||
| 2 | |||||||||||
| 3 | 25 | ▶ | use TestML1::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 25 | our $VERSION = '0.57'; | |||||||||
| 5 | |||||||||||
| 6 | 25 | has runtime => (); | |||||||||
| 7 | 25 | has compiler => (); | |||||||||
| 8 | 25 | has bridge => (); | |||||||||
| 9 | 25 | has library => (); | |||||||||
| 10 | 25 | has testml => (); | |||||||||
| 11 | |||||||||||
| 12 | 24 | ▶ | sub run { | ||||||||
|
Subroutine
run: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 13 | 24 | my ($self) = @_; | |||||||||
| 14 | 24 | $self->set_default_classes; | |||||||||
| 15 | 24 | $self->runtime->new( | |||||||||
| 16 | compiler => $self->compiler, | ||||||||||
| 17 | bridge => $self->bridge, | ||||||||||
| 18 | library => $self->library, | ||||||||||
| 19 | testml => $self->testml, | ||||||||||
| 20 | )->run; | ||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 24 | ▶ | sub set_default_classes { | ||||||||
|
Subroutine
set_default_classes: called CC=5 SCAR=16.1
Pod
undocumented
| |||||||||||
| 24 | 24 | my ($self) = @_; | |||||||||
| 25 | 24 | ▶ | if (not $self->runtime) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 24 | require TestML1::Runtime::TAP; | |||||||||
| 27 | 24 | $self->{runtime} = 'TestML1::Runtime::TAP'; | |||||||||
| 28 | } | ||||||||||
| 29 | 24 | ▶ | if (not $self->compiler) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 20 | require TestML1::Compiler::Pegex; | |||||||||
| 31 | 20 | $self->{compiler} = 'TestML1::Compiler::Pegex'; | |||||||||
| 32 | } | ||||||||||
| 33 | 24 | ▶ | if (not $self->bridge) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | 3 | require TestML1::Bridge; | |||||||||
| 35 | 3 | $self->{bridge} = 'TestML1::Bridge'; | |||||||||
| 36 | } | ||||||||||
| 37 | 24 | ▶ | if (not $self->library) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | 24 | require TestML1::Library::Standard; | |||||||||
| 39 | 24 | require TestML1::Library::Debug; | |||||||||
| 40 | $self->{library} = [ | ||||||||||
| 41 | 24 | 'TestML1::Library::Standard', | |||||||||
| 42 | 'TestML1::Library::Debug', | ||||||||||
| 43 | ]; | ||||||||||
| 44 | } | ||||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | 25 | 1; | |||||||||