Condition Coverage

blib/lib/Git/Hooks/GerritChangeId.pm
Criterion Covered Total %
condition 2 18 11.1


and 3 conditions

line !l l&&!r l&&r condition
22 0 0 0 $git->fault("Internal error: can't open '${filename}' for writing:", {"details", $!}) and croak()
54 0 0 2 defined $cmsg->title and $cmsg->title =~ /\S/u
0 0 0 defined $cmsg->body and $cmsg->body =~ /\S/u
59 0 0 0 @footer == 1 and $footer[0] eq "signed-off-by"

or 3 conditions

line l !l&&r !l&&!r condition
54 2 0 0 defined $cmsg->title and $cmsg->title =~ /\S/u or defined $cmsg->body and $cmsg->body =~ /\S/u
59 0 0 0 @footer == 0 or @footer == 1 and $footer[0] eq "signed-off-by"