Branch Coverage

deps/libgit2/src/util/hash.c
Criterion Covered Total %
branch 8 12 66.6


line true false branch
107 0 186 if (git_hash_ctx_init(&ctx, algorithm) < 0)
110 186 0 if ((error = git_hash_update(&ctx, data, len)) >= 0)
128 0 994 if (git_hash_ctx_init(&ctx, algorithm) < 0)
131 1988 994 for (i = 0; i < n; i++) {
132 0 1988 if ((error = git_hash_update(&ctx, vec[i].data, vec[i].len)) < 0)
150 100 5 for (i = 0; i < hash_len; i++) {