forked from TrueCloudLab/frostfs-api-go
Add v2
version to go module name
Replace all elements from `v2` to root directory. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
2d70391e31
commit
25da5d2e13
267 changed files with 116 additions and 17991 deletions
18
tombstone/test/generate.go
Normal file
18
tombstone/test/generate.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package tombstonetest
|
||||
|
||||
import (
|
||||
refstest "github.com/nspcc-dev/neofs-api-go/v2/refs/test"
|
||||
"github.com/nspcc-dev/neofs-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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue