Branch Coverage

blib/lib/Git/Hooks/GerritChangeId.pm
Criterion Covered Total %
branch 7 14 50.0


line true false branch
22 0 2 unless open my $fh, ">", $filename
33 8 0 if (defined $value)
49 15 2 if $msg =~ /^Change-Id:/imu
54 0 0 unless (defined $cmsg->title and $cmsg->title =~ /\S/u or defined $cmsg->body and $cmsg->body =~ /\S/u)
59 0 0 if @footer == 0 or @footer == 1 and $footer[0] eq "signed-off-by"
74 0 17 unless (defined $msg)
81 2 15 if (my $new_msg = insert_change_id($git, $msg))