[#1238] Adopt neofs-node for non pointer slices in SDK

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-15 15:11:35 +03:00 committed by Alex Vanin
parent 9fad29dfe0
commit 8f476f3c4d
41 changed files with 146 additions and 148 deletions

View file

@ -42,7 +42,7 @@ func TestCheckFormat(t *testing.T) {
require.NoError(t, CheckFormat(c))
// set empty value attribute
attr1 := container.NewAttribute()
var attr1 container.Attribute
attr1.SetKey("attr")
attrs := container.Attributes{attr1}
@ -51,11 +51,11 @@ func TestCheckFormat(t *testing.T) {
require.ErrorIs(t, CheckFormat(c), errEmptyAttribute)
// add same key attribute
attr2 := container.NewAttribute()
var attr2 container.Attribute
attr2.SetKey(attr1.Key())
attr2.SetValue("val")
attr1.SetValue(attr2.Value())
attrs[0].SetValue(attr2.Value())
attrs = append(attrs, attr2)
@ -63,7 +63,9 @@ func TestCheckFormat(t *testing.T) {
require.ErrorIs(t, CheckFormat(c), errRepeatedAttributes)
attr2.SetKey(attr1.Key() + "smth")
attrs[1].SetKey(attr1.Key() + "smth")
c.SetAttributes(attrs)
require.NoError(t, CheckFormat(c))
}