Branch Coverage

deps/libgit2/src/libgit2/message.c
Criterion Covered Total %
branch 16 26 61.5


line true false branch
14 14 0 while (len) {
16 7 7 if (!git__isspace(c))
38 10 4 for (i = 0; i < strlen(message); i += line_length) {
41 10 0 if (next_newline != NULL) {
47 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)
52 0 7 if (!rtrimmed_line_length) {
57 0 7 if (consecutive_empty_lines > 0 && message_out->size > 0)
0 0 if (consecutive_empty_lines > 0 && message_out->size > 0)
65 0 4 return git_str_oom(message_out) ? -1 : 0;
74 4 0 GIT_BUF_WRAP_PRIVATE(message_out, git_message__prettify, message, strip_comments, comment_char);
4 0 GIT_BUF_WRAP_PRIVATE(message_out, git_message__prettify, message, strip_comments, comment_char);