Branch Coverage

perllib/Arch/Tree.pm
Criterion Covered Total %
branch 15 244 6.1


line true false branch
39 0 0 unless -d $dir
41 0 0 unless $root
65 0 0 unless $$self{'id_tagging_method'}
73 0 0 if $$self{'version'}
74 0 0 has_tree_version_dir_opt ? :
82 0 0 has_tree_id_cmd ? :
92 0 0 has_set_tree_version_cmd ? :
101 0 0 wantarray ? :
118 0 0 wantarray ? :
125 0 0 if $$self{'cached_logs'}{$revision}
129 0 0 if ($$self{'own_logs'}) { }
131 0 0 unless $name->is_valid('revision')
133 0 0 $n[2] ne '' ? :
137 0 0 if -f $file
141 0 0 unless $message
144 0 0 if $$self{'cache_logs'}
152 0 0 $version eq '*' ? :
0 0 ref $version eq 'ARRAY' ? :
162 0 0 wantarray ? :
187 0 0 $is_baz ? :
191 0 0 if $? >> 8 == 2
194 0 0 if $is_baz
204 0 0 if $line =~ /^\*/
205 0 0 if $line eq ''
208 0 0 if $line =~ /^These files would be source but lack inventory ids/
211 0 0 if ($is_baz and $line =~ /^([ADR ][ MP]) (.+?)(?: => (.+))?$/)
213 0 0 unless $tla_prefix
215 0 0 $1 eq 'R ' ? :
218 0 0 $is_dir ? :
219 0 0 if $3
222 0 0 unless $line =~ m[^([ADM=/-])([ />b-]) ([^\t]+)(?:\t([^\t]+))?$]
230 0 0 if $type eq '/'
242 0 0 if -d $dir
245 0 0 is_baz ? :
248 0 0 -f "$dir/mod-dirs-index" ? :
264 0 0 unless $text eq '' or $text =~ s/^Patches applied:\n\n//
274 0 0 if $text ne ''
276 0 0 if wantarray
286 0 0 wantarray ? :
297 0 0 wantarray ? :
304 0 0 unless ($$self{'missing_revision_descs'}{$version})
305 0 0 /^\S/ ? :
326 0 0 unless $revision =~ /^(.*)--version-0$/
346 0 0 if $one_version
352 0 0 unless ($log)
358 0 0 if ($kind eq 'import') { }
0 0 elsif ($kind eq 'tag') { }
361 0 0 $no_continuation ? :
364 0 0 if $one_version and not $revision =~ /^\Q$version--\E/
369 0 0 $callback ? :
370 0 0 unless --$limit and $log
386 0 0 if @_ == 1
393 0 0 if (defined $filepath)
396 0 0 -f _ ? :
0 0 -d _ ? :
0 0 -l $full_filepath ? :
400 0 0 if $filepath eq ''
405 0 0 if (defined $filepath)
407 0 0 unless defined $changed
411 0 0 if (defined $filepath)
413 0 0 $$changed{&ADD} ? :
414 0 0 $$changed{&RENAME} ? :
415 0 0 $$changed{&MODIFY} ? :
417 0 0 if $$revision_desc{'is_filepath_renamed'}
419 0 0 if $$revision_desc{'is_filepath_added'}
423 0 0 $callback ? :
427 0 0 unless --$limit and $revision_desc
442 12 1 if (defined $linenums)
444 8 4 unless (ref $linenums)
445 0 15 unless /^(\d+)?(-|\.\.)?(\d+)?$/
447 9 6 $2 ? :
450 10 2 if (ref $linenums eq 'ARRAY')
453 12 0 if (ref $linenums eq 'HASH')
475 15 12 if ($i == 0 or not _eq($last_rd_index, -1) || _eq($$line_rd_indexes[$i - 1], $last_rd_index))
479 15 7 if ($i > 0 and _eq($last_rd_index, -1) || !_eq($$line_rd_indexes[$i - 1], $last_rd_index))
497 0 0 if $match_re
500 0 0 unless -f $full_filepath
507 0 0 if ($highlight)
524 0 0 if ($match_re)
526 0 0 unless defined $re
536 0 0 if $num_unannotated_lines == 0
540 0 0 if ($log->get_revision_kind eq 'import')
543 0 0 if ($ref and not $$ref)
552 0 0 unless $$revision_desc{'is_filepath_modified'} or $$revision_desc{'is_filepath_added'}
559 0 0 if $prefetch_callback
564 0 0 unless ($changeset)
571 0 0 if $diff =~ /^\*/
578 0 0 if $i > @line_rd_index_refs
583 0 0 if ($ref and not $$ref)
592 0 0 if $$revision_desc{'is_filepath_added'} and $num_unannotated_lines > 0
594 0 0 if $num_unannotated_lines < 0
598 0 0 if not $full_history and $num_unannotated_lines == 0
602 0 0 if not $full_history and $old_num_unannotated_lines == $num_unannotated_lines
607 0 0 $callback ? :
611 0 0 unless $revision_desc
613 0 0 $num_unannotated_lines == 0 ? :
615 0 0 unless wantarray
617 0 0 if $args{'group'}
625 0 0 unless @keys
629 0 0 if (@_ and not $self->exist->{$_})
645 0 0 has_file_diffs_cmd ? :
654 0 0 if ref $_[0] eq 'HASH'
658 0 0 if $$opts{'id'}
662 0 0 if chdir $$self{'dir'}
673 0 0 if chdir $$self{'dir'}
684 0 0 if chdir $$self{'dir'}
699 4 0 unless ref $self
700 0 0 if ref $_[0] eq 'HASH'
706 0 0 if $$opts{$opt}
708 0 0 unless $is_baz or $$opts{'nosetup'}
709 0 0 unless $is_baz
714 0 0 if ($is_baz)
717 0 0 if chdir $dir
729 0 0 if ref $_[0] eq 'HASH'
733 0 0 unless $$opts{'dir'}
736 0 0 if $$opts{$_opt}
740 0 0 if $$opts{$_opt}
743 0 0 if (has_commit_version_arg) { }
0 0 elsif ($version) { }
750 0 0 if ($files)
751 0 0 unless ref $files eq 'ARRAY'
753 0 0 if has_commit_files_separator