Branch Coverage

blib/lib/App/GitGot/Command/add.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
38 8 0 unless @dirs
40 1 7 if ($self->opt->recursive)
41 0 1 unless try_load_class('Path::Iterator::Rule')
62 1 7 unless (-e "$path/.git")
72 0 7 unless prompt("\nAdd repository at '${path}'? ", {'yn', 1, 'default', 'y'})
77 0 7 if (1 == scalar keys %$repo) { }
93 7 0 unless $self->tags
103 0 7 $a =~ /remote "(.*?)"/u ? :
113 1 8 if &any(sub { $_ eq $dir; } , map({$_->path;} $self->all_repos))