Branch Coverage

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


line true false branch
11 187 0 if (content && content_len) {
174 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 3984 0 while (ctx->line_len > 0 &&
3975 9 while (ctx->line_len > 0 &&
69 1619 2356 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 6862 737 while (remain) {