forked from TrueCloudLab/frostfs-sdk-go
[#59] audit/test: reuse version generator
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
db784a5758
commit
74a5254819
2 changed files with 19 additions and 2 deletions
17
version/test/generate.go
Normal file
17
version/test/generate.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package test
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
|
||||
"github.com/nspcc-dev/neofs-sdk-go/version"
|
||||
)
|
||||
|
||||
// Version returns random version.Version.
|
||||
func Version() *version.Version {
|
||||
x := version.New()
|
||||
|
||||
x.SetMajor(rand.Uint32())
|
||||
x.SetMinor(rand.Uint32())
|
||||
|
||||
return x
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue