frostfs-api-go/tombstone/test/generate.go
Alex Vanin f69d2ad83c Rename package name
Due to source code relocation from GitHub.

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
2023-03-07 13:42:36 +03:00

18 lines
394 B
Go

package tombstonetest
import (
refstest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/test"
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/tombstone"
)
func GenerateTombstone(empty bool) *tombstone.Tombstone {
m := new(tombstone.Tombstone)
if !empty {
m.SetExpirationEpoch(89)
m.SetSplitID([]byte{3, 2, 1})
m.SetMembers(refstest.GenerateObjectIDs(false))
}
return m
}