forked from TrueCloudLab/frostfs-api-go
[#164] sdk/object: Add parent ID getter and setter
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
420d956062
commit
ae81f4584e
3 changed files with 30 additions and 0 deletions
|
@ -251,3 +251,12 @@ func TestRawObject_CutPayload(t *testing.T) {
|
|||
require.Equal(t, p2, o2.GetPayload())
|
||||
require.Equal(t, p1, o1.GetPayload())
|
||||
}
|
||||
|
||||
func TestRawObject_SetParentID(t *testing.T) {
|
||||
obj := NewRaw()
|
||||
|
||||
id := randID(t)
|
||||
obj.setParentID(id)
|
||||
|
||||
require.Equal(t, id, obj.GetParentID())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue