Branch Coverage

deps/libgit2/src/hash.c
Criterion Covered Total %
branch 11 20 55.0


line true false branch
19 0 1398 if ((error = git_hash_sha1_ctx_init(&ctx->sha1)) < 0)
29 1398 0 switch (ctx->algo) {
40 47 0 switch (ctx->algo) {
51 2875 0 switch (ctx->algo) {
62 1387 0 switch (ctx->algo) {
76 0 98 if (git_hash_ctx_init(&ctx) < 0)
79 98 0 if ((error = git_hash_update(&ctx, data, len)) >= 0)
93 0 970 if (git_hash_ctx_init(&ctx) < 0)
96 1940 970 for (i = 0; i < n; i++) {
97 0 1940 if ((error = git_hash_update(&ctx, vec[i].data, vec[i].len)) < 0)