[#189] sdk/netmap: Define unspecified clause

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-11-05 18:35:58 +03:00 committed by Alex Vanin
parent 162b0de725
commit d704795dcc
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ import (
type Clause uint32
const (
_ Clause = iota
ClauseUnspecified Clause = iota
// ClauseSame is a selector modifier to select only nodes having the same value of bucket attribute.
ClauseSame
@ -22,7 +22,7 @@ const (
func ClauseFromV2(c netmap.Clause) Clause {
switch c {
default:
return 0
return ClauseUnspecified
case netmap.Same:
return ClauseSame
case netmap.Distinct:

View file

@ -13,7 +13,7 @@ func TestClauseFromV2(t *testing.T) {
cV2 netmap.Clause
}{
{
c: 0,
c: ClauseUnspecified,
cV2: netmap.UnspecifiedClause,
},
{