Branch Coverage

deps/libgit2/deps/pcre/pcre_newline.c
Criterion Covered Total %
branch 1 24 4.1


line true false branch
92 146 0 if (type == NLTYPE_ANYCRLF) switch(c)
95 0 0 case CHAR_CR: *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
0 0 case CHAR_CR: *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
112 0 0 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
0 0 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
117 0 0 case CHAR_NEL: *lenptr = utf? 2 : 1; return TRUE;
169 0 0 if (type == NLTYPE_ANYCRLF) switch(c)
172 0 0 *lenptr = (ptr > startptr && ptr[-1] == CHAR_CR)? 2 : 1;
0 0 *lenptr = (ptr > startptr && ptr[-1] == CHAR_CR)? 2 : 1;
184 0 0 *lenptr = (ptr > startptr && ptr[-1] == CHAR_CR)? 2 : 1;
0 0 *lenptr = (ptr > startptr && ptr[-1] == CHAR_CR)? 2 : 1;
196 0 0 case CHAR_NEL: *lenptr = utf? 2 : 1; return TRUE;