Branch Coverage

inc/TestML/Compiler.pm
Criterion Covered Total %
branch 15 38 39.4


line true false branch
20 0 4 if ($self->directives->{'DumpAST'})
45 8 44 unless length $part
46 20 24 if ($part =~ /^(\#.*|\ *)\n/)
50 4 20 if ($part =~ /^%(\w+)\s*(.*?)\s*\n/) { }
53 4 0 if ($directive eq 'TestML')
54 0 4 unless $value =~ /^\d+\.\d+\.\d+$/
56 0 4 if $self->directives->{'TestML'}
62 0 0 unless $self->directives->{'TestML'}
63 0 0 if ($directive eq 'Include') { }
0 0 elsif ($directive =~ /^(DataMarker|BlockMarker|PointMarker)$/) { }
0 0 elsif ($directive =~ /^(DebugPegex|DumpAST)$/) { }
64 0 0 unless my $runtime = $TestML::Runtime::Singleton
75 0 0 if $include->directives->{'TestML'}
82 0 0 unless length $value
90 0 20 if $input and not $self->directives->{'TestML'}
95 4 0 if ($top) { }
96 0 4 unless $self->directives->{'TestML'}
98 0 4 if $order_error
104 4 0 if ((my $split = index($input, "\n$DataMarker")) >= 0) { }