TestML1.pm

filter: Statementstmt 100% 27 / 27 Branchbran 75.0% 6 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 2 totaltotal 90.0% 36 / 40 CC 5 SCAR 13.5
CC
5
Cov
94%
set_default_classes
5.0
BEGIN
1.0
run
1.0
CRAP 3.9
« TestML1/Compiler/Pegex/AST.pm ↑ Summary TestML1/Base.pm »
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
BranchTrueFalseTotal
unless ($self->runtime) 24 0 24
26 24 require TestML1::Runtime::TAP;
27 24 $self->{runtime} = 'TestML1::Runtime::TAP';
28 }
29 24 ▶ if (not $self->compiler) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->compiler) 20 4 24
30 20 require TestML1::Compiler::Pegex;
31 20 $self->{compiler} = 'TestML1::Compiler::Pegex';
32 }
33 24 ▶ if (not $self->bridge) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->bridge) 3 21 24
34 3 require TestML1::Bridge;
35 3 $self->{bridge} = 'TestML1::Bridge';
36 }
37 24 ▶ if (not $self->library) {
Branch: 1 branch
BranchTrueFalseTotal
if (not $self->library) 24 0 24
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;
« TestML1/Compiler/Pegex/AST.pm ↑ Summary TestML1/Base.pm »