forked from TrueCloudLab/frostfs-api-go
[#197] sdk/object: Rename getters of Attribute and Object types
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
67bcf6eb4d
commit
5f5e5ac5dd
7 changed files with 82 additions and 82 deletions
|
@ -35,34 +35,34 @@ func TestVerificationFields(t *testing.T) {
|
|||
},
|
||||
{
|
||||
corrupt: func() {
|
||||
obj.SetPayloadSize(obj.GetPayloadSize() + 1)
|
||||
obj.SetPayloadSize(obj.PayloadSize() + 1)
|
||||
},
|
||||
restore: func() {
|
||||
obj.SetPayloadSize(obj.GetPayloadSize() - 1)
|
||||
obj.SetPayloadSize(obj.PayloadSize() - 1)
|
||||
},
|
||||
},
|
||||
{
|
||||
corrupt: func() {
|
||||
obj.GetID().ToV2().GetValue()[0]++
|
||||
obj.ID().ToV2().GetValue()[0]++
|
||||
},
|
||||
restore: func() {
|
||||
obj.GetID().ToV2().GetValue()[0]--
|
||||
obj.ID().ToV2().GetValue()[0]--
|
||||
},
|
||||
},
|
||||
{
|
||||
corrupt: func() {
|
||||
obj.GetSignature().Key()[0]++
|
||||
obj.Signature().Key()[0]++
|
||||
},
|
||||
restore: func() {
|
||||
obj.GetSignature().Key()[0]--
|
||||
obj.Signature().Key()[0]--
|
||||
},
|
||||
},
|
||||
{
|
||||
corrupt: func() {
|
||||
obj.GetSignature().Sign()[0]++
|
||||
obj.Signature().Sign()[0]++
|
||||
},
|
||||
restore: func() {
|
||||
obj.GetSignature().Sign()[0]--
|
||||
obj.Signature().Sign()[0]--
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue