Branch Coverage

blib/lib/Test2/Harness/Renderer/JUnit.pm
Criterion Covered Total %
branch 0 64 0.0


line true false branch
40 0 0 $ENV{'ALLOW_PASSING_TODOS'} ? :
57 0 0 unless my $job_id = $f->{'harness'}{'job_id'}
61 0 0 unless (defined $stamp)
68 0 0 if $self->{'tests'}{$job_id} and $job_try < ($self->{'tests'}{$job_id}{'job_try'} // 0)
72 0 0 if ($f->{'harness_job_launch'})
102 0 0 if ($f->{'harness_job_end'})
108 0 0 if ($f->{'errors'})
112 0 0 unless $msg->{'from_harness'}
113 0 0 unless $msg->{'tag'} // !1
116 0 0 if ($details =~ /^Planned for ([0-9]+) assertions?, but saw ([0-9]+)/)
119 0 0 if ($details =~ /Test script returned error|Assertion failures were encountered|Subtest failures were encountered/) { }
127 0 0 if ($test_error_messages) { }
0 0 elsif (not $test->{'testsuite'}{'errors'} and $alternative_error) { }
151 0 0 if ($f->{'plan'})
152 0 0 if ($f->{'plan'}{'skip'})
156 0 0 if ($f->{'plan'}{'count'})
163 0 0 if ($f->{'harness_job_exit'})
164 0 0 unless $f->{'harness_job_exit'}{'exit'}
174 0 0 if ($f->{'assert'})
177 0 0 if $f->{'hubs'} and $f->{'hubs'}[0]{'nested'}
181 0 0 defined $test_name ? :
186 0 0 unless $stamp
191 0 0 if ($f->{'amnesty'} and grep {($_->{'tag'} // '') eq 'TODO';} @{$$f{'amnesty'};}) { }
0 0 elsif ($f->{'assert'}{'pass'}) { }
192 0 0 if (not $f->{'assert'}{'pass'}) { }
0 0 elsif ($self->{'allow_passing_todos'}) { }
238 0 0 if ($f->{'info'} and $test->{'last_failure'})
240 0 0 unless $line->{'details'}
254 0 0 unless open my $fh, '>:encoding(UTF-8)', $self->{'junit_file'}
288 0 0 unless $test->{'last_failure'}
291 0 0 if ($fail->{'test_num'} == $new_test_number)
340 0 0 unless $data and $data =~ /\S/ms