[#54] tests: unify test generator names

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-11-12 14:19:16 +03:00 committed by Alex Vanin
parent fa7c01bd0b
commit 3d0df0d068
35 changed files with 113 additions and 113 deletions

View file

@ -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()

View file

@ -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())

View file

@ -40,7 +40,7 @@ func TestInfo_SetOwner(t *testing.T) {
info Info
)
id = *ownertest.GenerateID()
id = *ownertest.ID()
require.False(t, IsOwner(info, id))