forked from TrueCloudLab/frostfs-api-go
[#164] sdk/object: Add HasParent method
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
2a2e4d8577
commit
1305bc750e
3 changed files with 29 additions and 0 deletions
|
@ -275,3 +275,15 @@ func TestRawObject_ResetRelations(t *testing.T) {
|
|||
|
||||
require.Nil(t, obj.GetPreviousID())
|
||||
}
|
||||
|
||||
func TestRwObject_HasParent(t *testing.T) {
|
||||
obj := NewRaw()
|
||||
|
||||
obj.InitRelations()
|
||||
|
||||
require.True(t, obj.HasParent())
|
||||
|
||||
obj.ResetRelations()
|
||||
|
||||
require.False(t, obj.HasParent())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue