Branch Coverage

inc/TestML/Runtime.pm
Criterion Covered Total %
branch 52 104 50.0


line true false branch
19 2 0 $0 =~ m[(.*)/] ? :
39 2 3 if (ref $statement eq 'TestML::Assignment') { }
54 0 2 if @$signature and @$args != @$signature
63 0 0 if ref $arg eq 'TestML::Expression'
73 4 2 if $block != 1
75 5 1 if (my $assert = $statement->assert)
95 5 0 if ($assert->expr) { }
108 4 22 if ($expr->isa('TestML::Expression')) { }
110 0 4 if @calls <= 1
113 4 4 if ($self->error)
115 0 4 unless $call->isa('TestML::Call') and $call->name eq 'Catch'
124 0 26 if ($self->error)
133 5 29 if ($call->isa('TestML::Object'))
136 0 29 if ($call->isa('TestML::Function'))
139 16 13 if ($call->isa('TestML::Point'))
142 13 0 if ($call->isa('TestML::Call'))
148 0 13 if ($callable->isa('TestML::Object'))
151 0 13 unless $call->args or defined $context
154 8 5 if $context
155 13 0 if ($callable->isa('TestML::Callable'))
157 4 9 if ($@)
161 0 9 unless UNIVERSAL::isa($value, 'TestML::Object')
165 0 0 if ($callable->isa('TestML::Function'))
176 3 1 if ($library->can($name))
189 0 16 unless defined $value
190 0 16 if ($value =~ s/\n+\z/\n/ and $value eq "\n")
199 2 1 unless @$wanted
204 0 4 if exists $points{'SKIP'}
205 0 4 if (exists $points{'ONLY'})
207 0 0 unless exists $points{$point}
213 0 16 unless exists $points{$point}
216 0 4 if exists $points{'LAST'}
224 0 2 unless $self->testml
226 0 2 unless ($self->testml =~ /\n/)
227 0 0 unless $self->testml =~ m[(?:(.*)/)?(.*)]
229 0 0 if $1
232 0 2 unless $$self{'function'} = $self->compiler->new->compile($self->testml)
251 2 2 if (ref $lib eq 'ARRAY') { }
262 0 5 unless my $label = $self->function->getvar('Label')
263 0 5 unless $label = $label->value
271 4 0 if $var eq 'BlockLabel'
272 0 0 if (my $v = $block->points->{$var})
277 0 0 if (my $v = $self->function->getvar($var))
285 0 0 unless open my $fh, $path
303 28 2 @_ == 1 ? :
308 46 26 if (my $object = $self->namespace->{$name})
396 0 0 unless $type =~ s/^TestML:://
413 0 0 $_[0]->value =~ /^-?\d+(?:\.\d+)$/ ? :
417 0 0 length $_[0]->value ? :
429 0 0 $_[0]->value != 0 ? :
442 0 0 $_[0]->value ? :
443 0 0 $_[0]->value ? :