forked from TrueCloudLab/frostfs-sdk-go
[#170] checksum: Drop Empty
method
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
168b3ee7a4
commit
96892d7bc4
6 changed files with 42 additions and 26 deletions
|
@ -126,8 +126,10 @@ func TestObject_SetPayloadChecksum(t *testing.T) {
|
|||
cs.SetSHA256(randSHA256Checksum(t))
|
||||
|
||||
obj.SetPayloadChecksum(cs)
|
||||
cs2, set := obj.PayloadChecksum()
|
||||
|
||||
require.Equal(t, cs, obj.PayloadChecksum())
|
||||
require.True(t, set)
|
||||
require.Equal(t, cs, cs2)
|
||||
}
|
||||
|
||||
func TestObject_SetPayloadHomomorphicHash(t *testing.T) {
|
||||
|
@ -137,8 +139,10 @@ func TestObject_SetPayloadHomomorphicHash(t *testing.T) {
|
|||
cs.SetTillichZemor(randTZChecksum(t))
|
||||
|
||||
obj.SetPayloadHomomorphicHash(cs)
|
||||
cs2, set := obj.PayloadHomomorphicHash()
|
||||
|
||||
require.Equal(t, cs, obj.PayloadHomomorphicHash())
|
||||
require.True(t, set)
|
||||
require.Equal(t, cs, cs2)
|
||||
}
|
||||
|
||||
func TestObject_SetAttributes(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue