Branch Coverage

deps/libgit2/src/parse.c
Criterion Covered Total %
branch 17 30 56.6


line true false branch
11 206 0 if (content && content_len) {
193 13 if (content && content_len) {
54 0 58 if (ctx->line_len < expected_len)
57 0 58 if (memcmp(ctx->line, expected, expected_len) != 0)
68 4669 0 while (ctx->line_len > 0 &&
4660 9 while (ctx->line_len > 0 &&
69 1894 2766 ctx->line[0] != '\n' &&
82 0 0 if (ctx->line_len != 1 || ctx->line[0] != '\n')
0 0 if (ctx->line_len != 1 || ctx->line[0] != '\n')
94 8 0 if (ctx->line_len < 1 || !git__isdigit(ctx->line[0]))
0 8 if (ctx->line_len < 1 || !git__isdigit(ctx->line[0]))
97 0 8 if ((ret = git__strntol64(out, ctx->line, ctx->line_len, &end, base)) < 0)
106 0 78 if (ctx->line_len < GIT_OID_HEXSZ)
108 0 78 if ((git_oid_fromstrn(out, ctx->line, GIT_OID_HEXSZ)) < 0)
119 7682 872 while (remain) {