forked from TrueCloudLab/frostfs-sdk-go
[#210] subnet: Refactor and document package functionality
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6709b00c89
commit
eb3b990812
13 changed files with 276 additions and 216 deletions
14
subnet/test/subnet.go
Normal file
14
subnet/test/subnet.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package subnettest
|
||||
|
||||
import (
|
||||
"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() (x subnet.Info) {
|
||||
x.SetID(subnetidtest.ID())
|
||||
x.SetOwner(*usertest.ID())
|
||||
return
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue