Branch Coverage

blib/lib/App/Codeowners.pm
Criterion Covered Total %
branch 21 56 37.5


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)
46 0 3 if $opts->{'expand_aliases'}
50 0 3 if $proc->wait
59 0 3 $opts->{'patterns'} ? :
2 1 $show_projects ? :
73 0 9 if (%filter_owners)
75 0 0 if $filter_owners{$owner}
79 0 9 if (%filter_patterns)
80 0 0 if $filter_patterns{$match->{'pattern'} or ""}
83 0 9 if (%filter_projects)
84 0 0 if $filter_projects{$match->{'project'} or ""}
92 0 9 $opts->{'patterns'} ? :
6 3 $show_projects ? :
95 0 3 if $proc->wait
102 0 0 unless my $toplevel = git_toplevel(".")
104 0 0 unless my $codeowners_path = find_codeowners_in_directory($toplevel)
122 0 0 unless my $toplevel = git_toplevel(".")
124 0 0 unless my $codeowners_path = find_codeowners_in_directory($toplevel)
142 0 0 unless my $toplevel = git_toplevel(".")
144 0 0 unless my $codeowners_path = find_codeowners_in_directory($toplevel)
168 0 1 unless $path->parent->exists
170 1 0 if ($path->is_dir)
178 1 0 if ($is_new) { }
198 1 0 if ($repopath)
201 0 1 if $proc->wait