forked from TrueCloudLab/frostfs-sdk-go
[#170] oid, cid: Refactor and document package functionality
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
24d6c2221f
commit
f7172adf18
49 changed files with 831 additions and 439 deletions
|
@ -39,9 +39,9 @@ func TestContainerContext_ApplyTo(t *testing.T) {
|
|||
id := cidtest.ID()
|
||||
|
||||
t.Run("method", func(t *testing.T) {
|
||||
c.ApplyTo(id)
|
||||
c.ApplyTo(&id)
|
||||
|
||||
require.Equal(t, id, c.Container())
|
||||
require.Equal(t, id, *c.Container())
|
||||
|
||||
c.ApplyTo(nil)
|
||||
|
||||
|
@ -49,7 +49,7 @@ func TestContainerContext_ApplyTo(t *testing.T) {
|
|||
})
|
||||
|
||||
t.Run("helper functions", func(t *testing.T) {
|
||||
c.ApplyTo(id)
|
||||
c.ApplyTo(&id)
|
||||
|
||||
session.ApplyToAllContainers(c)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue