Branch Coverage

blib/lib/App/GitHooks/Plugin/ValidateChangelogFormat.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
125 0 10 if $git_action eq 'D'
130 2 8 defined $date_format_regex ? :
150 5 5 if scalar @releases == 0
170 0 5 if not defined $date or $date eq ''
173 1 4 if not $date =~ /$date_format_regex/
186 0 5 if $version eq ''
189 2 3 if (defined $version_format_regex) { }
191 1 1 if not $version =~ qr/^$version_format_regex$/x
196 0 3 if not version::is_lax($version)
210 1 4 if scalar keys %$description == 0
220 3 2 if scalar @errors != 0