Branch Coverage

blib/lib/Test/Instruction.pm
Criterion Covered Total %
branch 32 100 32.0


line true false branch
56 0 20 if $instruction->debug
63 0 20 if ($instruction->catch) { }
65 0 0 unless $instruction->exits->test
73 0 20 unless ($instruction->test)
79 0 20 if $instruction->debug
89 0 0 unless $instruction->key
101 0 0 unless $instruction->key
114 0 0 unless $instruction->key
125 0 0 unless defined $instruction->index
137 0 0 unless defined $instruction->index
148 0 0 unless defined $instruction->index
161 0 0 unless defined $instruction->index
173 0 0 unless defined $instruction->index
186 0 0 unless defined $instruction->index
197 0 0 unless defined $instruction->index
210 0 0 unless defined $instruction->index
222 0 0 unless $instruction->key
234 0 0 unless $instruction->key
245 0 0 unless $instruction->key
276 1 0 defined $instruction->expected ? :
280 4 0 scalar @test == 1 ? :
288 0 0 scalar @test == 1 ? :
314 0 2 $instruction->args ? :
355 0 2 if $instructions->debug
362 1 1 $instructions->build ? :
364 0 2 if $instructions->debug
378 0 5 if $instructions->debug
384 1 4 if (my $subtests = delete $instruction->{'instructions'})
389 0 1 $instructions->debug ? :
393 0 1 if $instructions->debug
405 0 1 $instructions->debug ? :
0 1 unless instruction("instance", $new_instance, "test", $instruction->{'test'}, $instructions->debug ? ("debug", $instructions->debug) : (), "expected", $instruction->{'expected'})
407 0 1 $instructions->debug ? :
420 0 4 $instructions->debug ? :
0 4 unless instruction("instance", $instance, $instructions->debug ? ("debug", $instructions->debug) : (), %{$instruction;})
424 0 2 $test_info{'fail'} ? :
445 0 1 defined $build->args ? :
0 1 $build->args_list ? :
450 11 10 if ($instruction->meth) { }
5 5 elsif ($instruction->func) { }
5 0 elsif ($instruction->instance) { }
456 0 11 $instruction->args_list ? :
464 2 3 $instruction->args_list ? :
478 0 0 if $caller[0] eq "Log::JSON::Lines"
480 0 0 if $caller[1] =~ m[([^/]+)$]
481 0 0 if $caller[2] =~ /(\d+)/
482 0 0 if $caller[3] =~ /([^:]+)$/
485 0 0 !($_->{'module'} =~ /^main$/) ? :
489 0 0 $_->{'sub'} ? :
491 0 0 if $_ and $_->{'module'} and $_->{'line'}