Branch Coverage

inc/TestML/Runtime.pm
Criterion Covered Total %
branch 41 104 39.4


line true false branch
19 1 0 $0 =~ m[(.*)/] ? :
39 0 1 if (ref $statement eq 'TestML::Assignment') { }
54 0 1 if @$signature and @$args != @$signature
63 0 0 if ref $arg eq 'TestML::Expression'
73 10 0 if $block != 1
75 10 0 if (my $assert = $statement->assert)
95 10 0 if ($assert->expr) { }
108 20 0 if ($expr->isa('TestML::Expression')) { }
110 0 20 if @calls <= 1
113 0 40 if ($self->error)
115 0 0 unless $call->isa('TestML::Call') and $call->name eq 'Catch'
124 0 20 if ($self->error)
133 0 60 if ($call->isa('TestML::Object'))
136 0 60 if ($call->isa('TestML::Function'))
139 20 40 if ($call->isa('TestML::Point'))
142 40 0 if ($call->isa('TestML::Call'))
148 0 40 if ($callable->isa('TestML::Object'))
151 0 40 unless $call->args or defined $context
154 40 0 if $context
155 40 0 if ($callable->isa('TestML::Callable'))
157 0 40 if ($@)
161 0 40 unless UNIVERSAL::isa($value, 'TestML::Object')
165 0 0 if ($callable->isa('TestML::Function'))
176 3 0 if ($library->can($name))
189 0 20 unless defined $value
190 0 20 if ($value =~ s/\n+\z/\n/ and $value eq "\n")
199 0 1 unless @$wanted
204 0 10 if exists $points{'SKIP'}
205 0 10 if (exists $points{'ONLY'})
207 0 0 unless exists $points{$point}
213 0 20 unless exists $points{$point}
216 0 10 if exists $points{'LAST'}
224 0 1 unless $self->testml
226 0 1 unless ($self->testml =~ /\n/)
227 0 0 unless $self->testml =~ m[(?:(.*)/)?(.*)]
229 0 0 if $1
232 0 1 unless $$self{'function'} = $self->compiler->new->compile($self->testml)
251 1 1 if (ref $lib eq 'ARRAY') { }
262 0 10 unless my $label = $self->function->getvar('Label')
263 0 10 unless $label = $label->value
271 10 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 35 1 @_ == 1 ? :
308 91 34 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 ? :