forked from TrueCloudLab/frostfs-sdk-go
[#54] tests: unify test generator names
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
fa7c01bd0b
commit
3d0df0d068
35 changed files with 113 additions and 113 deletions
|
@ -70,7 +70,7 @@ func TestID_Equals(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestSubnetIDEncoding(t *testing.T) {
|
||||
id := subnetidtest.GenerateID()
|
||||
id := subnetidtest.ID()
|
||||
|
||||
t.Run("binary", func(t *testing.T) {
|
||||
data, err := id.Marshal()
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
subnetid "github.com/nspcc-dev/neofs-sdk-go/subnet/id"
|
||||
)
|
||||
|
||||
// GenerateID generates and returns random subnetid.ID using math/rand.Uint32.
|
||||
func GenerateID() *subnetid.ID {
|
||||
// ID generates and returns random subnetid.ID using math/rand.Uint32.
|
||||
func ID() *subnetid.ID {
|
||||
var id subnetid.ID
|
||||
|
||||
id.SetNumber(rand.Uint32())
|
||||
|
|
|
@ -40,7 +40,7 @@ func TestInfo_SetOwner(t *testing.T) {
|
|||
info Info
|
||||
)
|
||||
|
||||
id = *ownertest.GenerateID()
|
||||
id = *ownertest.ID()
|
||||
|
||||
require.False(t, IsOwner(info, id))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue