Branch Coverage

blib/lib/App/Codeowners.pm
Criterion Covered Total %
branch 20 54 37.0


line true false branch
26 4 0 if defined $color and not $color
29 0 4 unless my $handler = $self->can("_command_$command")
42 0 3 unless my $toplevel = git_toplevel('.')
44 0 3 unless my $codeowners_path = find_codeowners_in_directory($toplevel)
49 0 3 if $proc->wait
58 0 3 $opts->{'patterns'} ? :
2 1 $show_projects ? :
71 0 9 if (%filter_owners)
73 0 0 if $filter_owners{$owner}
77 0 9 if (%filter_patterns)
78 0 0 if $filter_patterns{$match->{'pattern'} or ''}
81 0 9 if (%filter_projects)
82 0 0 if $filter_projects{$match->{'project'} or ''}
90 0 9 $opts->{'patterns'} ? :
6 3 $show_projects ? :
93 0 3 if $proc->wait
100 0 0 unless my $toplevel = git_toplevel('.')
102 0 0 unless my $codeowners_path = find_codeowners_in_directory($toplevel)
120 0 0 unless my $toplevel = git_toplevel('.')
122 0 0 unless my $codeowners_path = find_codeowners_in_directory($toplevel)
140 0 0 unless my $toplevel = git_toplevel('.')
142 0 0 unless my $codeowners_path = find_codeowners_in_directory($toplevel)
166 0 1 unless $path->parent->exists
168 1 0 if ($path->is_dir)
176 1 0 if ($is_new) { }
196 1 0 if ($repopath)
199 0 1 if $proc->wait