Branch Coverage

blib/lib/App/GitGot/Command.pm
Criterion Covered Total %
branch 65 130 50.0


line true false branch
56 17 4 if $self->all or not $self->tags || $self->skip_tags || @{$self->args;}
62 9 3 unless $_ eq $repo->number
4 8 if (grep {$_ eq $repo->name unless $_ eq $repo->number;} @$list)
67 0 8 if ($self->skip_tags)
69 0 0 if grep {$repo->tags =~ /\b$_\b/u;} $tag
73 0 8 if ($self->tags)
75 0 0 if (grep {$repo->tags =~ /\b$_\b/u;} $tag)
81 0 8 unless $self->tags or @$list
110 0 37 $self->by_path ? :
118 8 84 unless keys %$entry
123 0 84 $self->by_path ? :
163 0 7 if ($scheme =~ /^\+/u) { }
172 0 7 if $@
193 25 17 if $self->_use_io_page
211 0 18 $self->by_path ? :
254 0 4 if (/^(\d+)-(\d+)?$/u) { }
268 2 2 unless $repo->repo
278 2 0 if ($repo_type eq 'git') { }
282 2 0 if $fxn
284 0 2 if $self->quiet and not $status
296 34 37 if -d $_
297 1 2 if $dir eq $dir->parent
305 0 6 unless my($self, $entry, $callback) = @_
312 3 3 if (not -d $path) { }
3 0 elsif (-d "$path/.git") { }
333 0 2 unless my($self, $entry) = @_
352 0 1 if (grep {/^From /u;} @err) { }
1 0 elsif (scalar @err == 0) { }
354 0 0 unless $self->quiet
358 1 0 unless $self->quiet
364 0 0 unless $self->quiet
373 0 6 unless my($self, $entry) = @_
378 0 6 if $entry->current_remote_branch
380 2 4 if ($self->opt->show_branch and defined $entry->current_branch)
384 2 4 $self->verbose ? :
388 0 2 unless my($self, $entry) = @_
396 0 1 if ($o[0] =~ /^Already up.to.date\./u) { }
397 0 0 unless $self->quiet
401 1 0 unless $self->quiet
412 0 0 unless $path
418 0 0 unless $repo->path eq $dir->absolute
420 0 0 -d $repo->path ? :
0 0 $repo->repo ? :
0 0 $repo->repo && -d $repo->path ? :
427 0 0 if ($self->quiet) { }
431 0 0 if ($self->verbose)
432 0 0 if $repo->tags
448 29 8 if (-e $file)
463 0 0 if ($entry->remote)
465 0 0 if ($cherry > 0)
489 0 6 if (keys %$status) { }
492 6 0 unless $self->quiet
495 2 4 if ($self->verbose)
497 8 0 unless my(@states) = $status->get($type)
501 0 0 if $_->mode eq 'renamed'
505 0 2 if $verbose_msg
525 6 6 if (-d $repo->path) { }
3 3 elsif ($repo->repo) { }
527 6 0 if ($repo_type eq 'git') { }
531 6 0 if $fxn
533 0 6 if $self->quiet and not $status
548 2 2 unless $repo->repo
558 2 0 if ($repo_type eq 'git') { }
562 2 0 if $fxn
564 0 2 if $self->quiet and not $status