frostfs-api-go/tombstone/test/generate.go
Evgenii Stratonikov 1351b6656d Move to frostfs-api
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2022-12-12 17:40:48 +03:00

18 lines
382 B
Go

package tombstonetest
import (
refstest "github.com/TrueCloudLab/frostfs-api-go/v2/refs/test"
"github.com/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
}