Branch Coverage

blib/lib/Tapper/TAP/Harness.pm
Criterion Covered Total %
branch 68 78 87.1


line true false branch
77 17 0 if -e $prove1
78 0 0 if -e $prove2
86 10 444 unless defined $section_name
88 42 402 if (defined $self->section_names->{$section_name} and not $section_name =~ /\d$/)
140 0 61 if $self->tap_is_archive
152 2 61 if $self->tap_is_archive
153 12 49 if $self->tap_single_plan
169 37 12 unless $report_tap =~ /^TAP Version/ism
196 88 11388 if ($is_unknown and $raw =~ /$re_prove_section/)
202 66 11410 if $raw =~ /$re_explicit_section_start/
206 135 927 if ($raw =~ /$re_explicit_section_start/ and not $last_line_was_version or not $sections_marked_explicit and $i == 0 || !$looks_like_prove_output && ($is_plan && !$last_line_was_version || $is_version && !$last_line_was_plan) || $looks_like_prove_output && !$last_line_was_version && !$last_line_was_plan && $raw =~ /$re_prove_section/)
223 401 49 if (keys %section)
225 77 324 if $looks_like_prove_output
235 10829 647 unless ($is_unknown)
240 953 10523 if ($line->is_comment and $raw =~ /$re_tapper_meta/)
246 326 627 if ($raw =~ /$re_tapper_meta_section/)
254 88 11388 if ($is_unknown and $raw =~ /$re_prove_section/)
261 448 11028 $is_plan ? :
262 52 11424 $is_version ? :
266 11 38 if $looks_like_prove_output
267 49 0 if keys %section
288 0 8 unless defined $tar
298 0 12 if $section_name
335 6 14 if (keys %section)
353 139 3 unless ($is_unknown)
361 55 87 if ($line->is_comment and $raw =~ /^#\s*((?:Tapper|Artemis|Test)-)([-\w]+):(.+)$/i)
368 2 53 if ($raw =~ /$re_tapper_meta_section/)
380 14 0 if keys %section
415 413 57 unless $rawtap =~ /^TAP Version/ism
436 63 0 $aggregator->total ? :
452 181 260 if defined $value
460 41 85 if defined $value
468 70 182 if defined $value
476 5 58 if defined $value
493 272 19468 if defined $value
511 11 63 if @{$self->parsed_report->{'tap_sections'};}
543 28 48 if ($_->{'section_name'} =~ m[(^\.{1,2})|/])
549 68 8 unless $rawtap =~ /^TAP Version/ism
559 0 13 unless my $prove = _get_prove()