[#170] oid, cid: Refactor and document package functionality

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-04-11 19:25:14 +03:00 committed by LeL
parent 24d6c2221f
commit f7172adf18
49 changed files with 831 additions and 439 deletions

View file

@ -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)