1
mirror of https://github.com/jedisct1/libsodium.git synced 2025-01-01 22:52:52 -07:00

lcov exclusion

This commit is contained in:
Frank Denis 2014-09-23 21:22:44 -07:00
parent f71c1c0e17
commit 727f3993a1
2 changed files with 4 additions and 1 deletions
src/libsodium/crypto_pwhash/scryptsalsa208sha256
test/default

View File

@ -60,7 +60,7 @@ encode64(uint8_t * dst, size_t dstlen, const uint8_t * src, size_t srclen)
} while (bits < 24 && i < srclen);
dnext = encode64_uint32(dst, dstlen, value, bits);
if (!dnext) {
return NULL;
return NULL; /* LCOV_EXCL_LINE */
}
dstlen -= dnext - dst;
dst = dnext;

View File

@ -204,6 +204,9 @@ static void tv3(void)
{ "Y0!?iQa9M%5ekffW(`",
"$7$A6....1....TrXs5Zk6s8sWHpQgWDIXTR8kUU3s6Jc3s.DtdS8M2i4$"
"a4ik5hGDN7foMuHOW.cp.CtX01UyCeO0.JAG.AHPpx5" },
/* Invalid pwhash strings */
{ "Y0!?iQa9M%5ekffW(`",
"$7$A6....1....$TrXs5Zk6s8sWHpQgWDIXTR8kUU3s6Jc3s.DtdS8M2i4"
"a4ik5hGDN7foMuHOW.cp.CtX01UyCeO0.JAG.AHPpx5" },