forked from TrueCloudLab/frostfs-node
Initial commit
Initial public review release v0.10.0
This commit is contained in:
commit
dadfd90dcd
276 changed files with 46331 additions and 0 deletions
25
lib/ir/info_test.go
Normal file
25
lib/ir/info_test.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
package ir
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestInfo(t *testing.T) {
|
||||
s := Info{}
|
||||
|
||||
n1 := Node{}
|
||||
n1.SetKey([]byte{1, 2, 3})
|
||||
|
||||
n2 := Node{}
|
||||
n2.SetKey([]byte{4, 5, 6})
|
||||
|
||||
nodes := []Node{
|
||||
n1,
|
||||
n2,
|
||||
}
|
||||
s.SetNodes(nodes)
|
||||
|
||||
require.Equal(t, nodes, s.Nodes())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue