[#302] pkg/object: Convert nil Tombstone to nil message

Document that `NewTombstoneFromV2` function return
`nil` when called on `nil`. Write corresponding
unit tests.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-06-08 19:37:35 +03:00 committed by Alex Vanin
parent dde721ea9f
commit 753402c336
3 changed files with 12 additions and 0 deletions

View file

@ -45,3 +45,4 @@ func TestSplitID(t *testing.T) {
})
})
}