1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
5 // Code used for testing only.
9 // MakeTestBlockDigest is used for testing with distinct BlockDigests
10 func MakeTestBlockDigest(i int) BlockDigest {
11 return BlockDigest{L: uint64(i)}
14 func MakeTestDigestSpecifySize(i int, s int) DigestWithSize {
15 return DigestWithSize{Digest: BlockDigest{L: uint64(i)}, Size: uint32(s)}
18 func MakeTestDigestWithSize(i int) DigestWithSize {
19 return MakeTestDigestSpecifySize(i, i)