Branch Coverage

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


line true false branch
19 0 1470 if ((error = git_hash_sha1_ctx_init(&ctx->sha1)) < 0)
29 1470 0 switch (ctx->algo) {
40 47 0 switch (ctx->algo) {
51 2994 0 switch (ctx->algo) {
62 1459 0 switch (ctx->algo) {
76 0 117 if (git_hash_ctx_init(&ctx) < 0)
79 117 0 if ((error = git_hash_update(&ctx, data, len)) >= 0)
93 0 994 if (git_hash_ctx_init(&ctx) < 0)
96 1988 994 for (i = 0; i < n; i++) {
97 0 1988 if ((error = git_hash_update(&ctx, vec[i].data, vec[i].len)) < 0)