forked from TrueCloudLab/frostfs-sdk-go
36b1e8442c
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
16 lines
368 B
Go
16 lines
368 B
Go
package subnettest
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neofs-sdk-go/subnet"
|
|
subnetidtest "github.com/nspcc-dev/neofs-sdk-go/subnet/id/test"
|
|
usertest "github.com/nspcc-dev/neofs-sdk-go/user/test"
|
|
)
|
|
|
|
// Info generates and returns random subnet.Info.
|
|
func Info(t *testing.T) (x subnet.Info) {
|
|
x.SetID(subnetidtest.ID())
|
|
x.SetOwner(*usertest.ID(t))
|
|
return
|
|
}
|