Branch Coverage

deps/libgit2/src/message.c
Criterion Covered Total %
branch 14 22 63.6


line true false branch
12 14 0 while (len) {
14 7 7 if (!git__isspace(c))
34 10 4 for (i = 0; i < strlen(message); i += line_length) {
37 10 0 if (next_newline != NULL) {
43 8 2 if (strip_comments && line_length && message[i] == comment_char)
8 0 if (strip_comments && line_length && message[i] == comment_char)
3 5 if (strip_comments && line_length && message[i] == comment_char)
48 0 7 if (!rtrimmed_line_length) {
53 0 7 if (consecutive_empty_lines > 0 && message_out->size > 0)
0 0 if (consecutive_empty_lines > 0 && message_out->size > 0)
61 0 4 return git_buf_oom(message_out) ? -1 : 0;