forked from TrueCloudLab/frostfs-api-go
21 lines
320 B
Go
21 lines
320 B
Go
package service
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetSetVersion(t *testing.T) {
|
|
v := uint32(7)
|
|
|
|
items := []VersionContainer{
|
|
new(ResponseMetaHeader),
|
|
new(RequestMetaHeader),
|
|
}
|
|
|
|
for _, item := range items {
|
|
item.SetVersion(v)
|
|
require.Equal(t, v, item.GetVersion())
|
|
}
|
|
}
|