2022-06-15 07:12:35 +00:00
|
|
|
package subnettest
|
|
|
|
|
|
|
|
import (
|
2023-04-25 09:11:42 +00:00
|
|
|
"testing"
|
|
|
|
|
2022-06-15 07:12:35 +00:00
|
|
|
"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.
|
2023-04-25 09:11:42 +00:00
|
|
|
func Info(t *testing.T) (x subnet.Info) {
|
2022-06-15 07:12:35 +00:00
|
|
|
x.SetID(subnetidtest.ID())
|
2023-04-25 09:11:42 +00:00
|
|
|
x.SetOwner(*usertest.ID(t))
|
2022-06-15 07:12:35 +00:00
|
|
|
return
|
|
|
|
}
|