Branch Coverage

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


line true false branch
1729 4141 0 if (ctx->detect_coll)
1731 4141 0 if (ctx->ubc_check)
1736 161 3980 if (ubc_dv_mask[0] != 0)
1738 5152 161 for (i = 0; sha1_dvs[i].dvType != 0; ++i)
1740 165 4987 if (ubc_dv_mask[0] & ((uint32_t)(1) << sha1_dvs[i].maskb))
1742 13200 165 for (j = 0; j < 80; ++j)
1748 165 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 165 || (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 4183 if (len == 0)
1831 2744 1439 if (left && len >= fill)
834 1910 if (left && len >= fill)
1840 1920 4183 while (len >= 64)
1853 4180 3 if (len > 0)
1871 1221 166 uint32_t padn = (last < 56) ? (56 - last) : (120 - last);