1 // Code used for testing only.
5 // Just used for testing when we need some distinct BlockDigests
6 func MakeTestBlockDigest(i int) BlockDigest {
7 return BlockDigest{L: uint64(i)}
10 func MakeTestDigestSpecifySize(i int, s int) DigestWithSize {
11 return DigestWithSize{Digest: BlockDigest{L: uint64(i)}, Size: uint32(s)}
14 func MakeTestDigestWithSize(i int) DigestWithSize {
15 return MakeTestDigestSpecifySize(i, i)