frostfs-api-go/pkg/reputation
Pavel Karpy 8ab3abab4b [#302] pkg/reputation: Convert nil Trust,
`PeerToPeerTrust` and `GlobalTrust` to nil message

Document that `Trust.ToV2`, `PeerToPeerTrust.ToV2`
and `GlobalTrust.ToV2` methods return `nil`when
called on `nil`. Document that `TrustFromV2`,
`PeerToPeerTrustFromV2`and `GlobalTrustFromV2`
functions return `nil` when called on `nil`. Write
corresponding unit tests.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-09 17:23:35 +03:00
..
test [#265] pkg/reputation: Implement PeerToPeerTrust structure 2021-04-09 11:57:42 +03:00
peer.go [#302] pkg/reputation: Document default values set in NewPeerID 2021-06-09 17:23:35 +03:00
peer_test.go [#302] pkg/reputation: Document default values set in NewPeerID 2021-06-09 17:23:35 +03:00
trust.go [#302] pkg/reputation: Convert nil Trust, 2021-06-09 17:23:35 +03:00
trust_test.go [#302] pkg/reputation: Convert nil Trust, 2021-06-09 17:23:35 +03:00