[#197] sdk/object: Rename getters of Attribute and Object types

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-16 11:48:38 +03:00 committed by Alex Vanin
parent 67bcf6eb4d
commit 5f5e5ac5dd
7 changed files with 82 additions and 82 deletions

View file

@ -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]--
},
},
}