[#155] sdk/object: Add object type getter/setter

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-22 14:02:36 +03:00 committed by Leonard Lyubich
parent 2fb1547cd8
commit dbb5102c02
3 changed files with 30 additions and 0 deletions

View file

@ -214,3 +214,13 @@ func TestRawObject_SetSessionToken(t *testing.T) {
require.Equal(t, tok, obj.GetSessionToken())
}
func TestRawObject_SetType(t *testing.T) {
obj := NewRaw()
typ := TypeStorageGroup
obj.SetType(typ)
require.Equal(t, typ, obj.GetType())
}