Branch Coverage

deps/libgit2/src/hash/sha1/sha1dc/sha1.c
Criterion Covered Total %
branch 24 40 60.0


line true false branch
1729 4354 0 if (ctx->detect_coll)
1731 4354 0 if (ctx->ubc_check)
1736 166 4188 if (ubc_dv_mask[0] != 0)
1738 5312 166 for (i = 0; sha1_dvs[i].dvType != 0; ++i)
1740 170 5142 if (ubc_dv_mask[0] & ((uint32_t)(1) << sha1_dvs[i].maskb))
1742 13600 170 for (j = 0; j < 80; ++j)
1748 170 0 if ((0 == ((ihvtmp[0] ^ ctx->ihv[0]) | (ihvtmp[1] ^ ctx->ihv[1]) | (ihvtmp[2] ^ ctx->ihv[2]) | (ihvtmp[3] ^ ctx->ihv[3]) | (ihvtmp[4] ^ ctx->ihv[4])))
1749 0 170 || (ctx->reduced_round_coll && 0==((ctx->ihv1[0] ^ ctx->ihv2[0]) | (ctx->ihv1[1] ^ ctx->ihv2[1]) | (ctx->ihv1[2] ^ ctx->ihv2[2]) | (ctx->ihv1[3] ^ ctx->ihv2[3]) | (ctx->ihv1[4] ^ ctx->ihv2[4]))))
0 0 || (ctx->reduced_round_coll && 0==((ctx->ihv1[0] ^ ctx->ihv2[0]) | (ctx->ihv1[1] ^ ctx->ihv2[1]) | (ctx->ihv1[2] ^ ctx->ihv2[2]) | (ctx->ihv1[3] ^ ctx->ihv2[3]) | (ctx->ihv1[4] ^ ctx->ihv2[4]))))
1753 0 0 if (ctx->safe_hash)
1785 0 0 if (safehash)
1794 0 0 if (ubc_check)
1802 0 0 if (detect_coll)
1810 0 0 if (reduced_round_coll)
1825 79 4374 if (len == 0)
1831 2863 1511 if (left && len >= fill)
846 2017 if (left && len >= fill)
1840 2049 4374 while (len >= 64)
1853 4371 3 if (len > 0)
1871 1293 166 uint32_t padn = (last < 56) ? (56 - last) : (120 - last);