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 445 unless defined $section_name
88 42 403 if (defined $self->section_names->{$section_name} and not $section_name =~ /\d$/)
140 0 62 if $self->tap_is_archive
152 2 62 if $self->tap_is_archive
153 13 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 13 if $section_name
335 6 15 if (keys %section)
353 157 3 unless ($is_unknown)
361 61 99 if ($line->is_comment and $raw =~ /^#\s*((?:Tapper|Artemis|Test)-)([-\w]+):(.+)$/i)
368 3 58 if ($raw =~ /$re_tapper_meta_section/)
380 15 0 if keys %section
415 413 58 unless $rawtap =~ /^TAP Version/ism
436 64 0 $aggregator->total ? :
452 183 265 if defined $value
460 41 87 if defined $value
468 71 185 if defined $value
476 5 59 if defined $value
493 273 19509 if defined $value
511 11 64 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()