forked from TrueCloudLab/frostfs-node
[#96] node: Drop neo-go's slices
package
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
47286ebf32
commit
76ff26039c
9 changed files with 25 additions and 20 deletions
|
@ -1,13 +1,13 @@
|
|||
package blobovnicza
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
oidtest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id/test"
|
||||
"github.com/nspcc-dev/neo-go/pkg/util/slice"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.etcd.io/bbolt"
|
||||
)
|
||||
|
@ -30,7 +30,7 @@ func TestBlobovniczaIterate(t *testing.T) {
|
|||
|
||||
seen := make([][]byte, 0, 2)
|
||||
inc := func(e IterationElement) error {
|
||||
seen = append(seen, slice.Copy(e.data))
|
||||
seen = append(seen, bytes.Clone(e.data))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue