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
|
@ -19,7 +19,7 @@ func TestVerificationFields(t *testing.T) {
|
|||
|
||||
p, err := keys.NewPrivateKey()
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, SetVerificationFields(&p.PrivateKey, obj))
|
||||
require.NoError(t, SetVerificationFields(p.PrivateKey, obj))
|
||||
|
||||
require.NoError(t, CheckVerificationFields(obj))
|
||||
|
||||
|
@ -45,10 +45,10 @@ func TestVerificationFields(t *testing.T) {
|
|||
},
|
||||
{
|
||||
corrupt: func() {
|
||||
obj.ID().ToV2().GetValue()[0]++
|
||||
obj.ToV2().GetObjectID().GetValue()[0]++
|
||||
},
|
||||
restore: func() {
|
||||
obj.ID().ToV2().GetValue()[0]--
|
||||
obj.ToV2().GetObjectID().GetValue()[0]--
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue