forked from TrueCloudLab/frostfs-sdk-go
[#170] checksum: Do not use pointers
Do not return pointers from getters. Do not pass pointers to the methods that does not modify the checksum. Add `Empty` method. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
fd13e61266
commit
caa055236b
7 changed files with 53 additions and 35 deletions
|
@ -78,7 +78,7 @@ func TestNew(t *testing.T) {
|
|||
|
||||
// check initial values
|
||||
require.Nil(t, sg.Members())
|
||||
require.Nil(t, sg.ValidationDataHash())
|
||||
require.True(t, sg.ValidationDataHash().Empty())
|
||||
require.Zero(t, sg.ExpirationEpoch())
|
||||
require.Zero(t, sg.ValidationDataSize())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue