Branch Coverage

blib/lib/App/GitHooks/Plugin/ForceBranchNamePattern.pm
Criterion Covered Total %
branch 13 18 72.2


line true false branch
138 0 10 unless (defined $branch_name_pattern)
145 3 7 if ($branch_name_pattern =~ /\$project_prefixes/)
149 1 2 if (not defined $project_prefix_regex or $project_prefix_regex eq '')
168 0 9 if scalar @branch_names == 0
175 5 4 if ($branch_name =~ /$branch_name_pattern/) { }
186 4 5 if (scalar @incorrect_branch_names != 0)
188 4 0 scalar @incorrect_branch_names == 1 ? :
4 0 scalar @incorrect_branch_names == 1 ? :
246 0 9 unless defined $branch