Condition Coverage

blib/lib/Git/Hooks/CheckLog.pm
Criterion Covered Total %
condition 0 34 0.0


and 2 conditions

line l !l condition
116 0 0 $git->fault("The commit log $what SHOULD NOT match '\Q$match\E'", {"commit", $id, "option", "match"}) and return 1
122 0 0 $git->fault("The commit log $what SHOULD match '\Q$match\E'", {"commit", $id, "option", "match"}) and return 1
181 0 0 $git->fault("This commit log message title must have just one line.\nPlease amend your commit and edit its log message so that its first line\nis separated from the rest by an empty line.\n", {"commit", $id}) and return 1

and 3 conditions

line !l l&&!r l&&r condition
69 0 0 0 not defined eval { do { $checker->next_word } } and $@
168 0 0 0 defined $title and length $title
193 0 0 0 $git->fault("This commit log message title is too long.\nIt is $tlen characters wide but should be at most $max_width, a limit set by\nyour configuration option.\nPlease, amend your commit to make its title shorter.\n", {"commit", $id, "option", "title-max-width"}) and ++$errors
205 0 0 0 $git->fault("This commit log message title SHOULD NOT end in a period.\nThis is required by your configuration option.\nPlease, amend your commit to remove the period.\n", {"commit", $id, "option", "title-period"}) and ++$errors
213 0 0 0 $git->fault("This commit log message title SHOULD end in a period.\nThis is required by your configuration option.\nPlease, amend your commit to add the period.\n", {"commit", $id, "option", "title-period"}) and ++$errors
239 0 0 0 defined $body and length $body

or 2 conditions

line l !l condition
23 0 0 $$config{lc $CFG} //= {}
26 0 0 $default->{'title-required'} //= ["true"]
27 0 0 $default->{'title-max-width'} //= [50]
28 0 0 $default->{'title-period'} //= ["deny"]
29 0 0 $default->{'body-max-width'} //= [72]