mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
issue: #33285 - move most cgo opeartions related to search/query into segcore package for reusing for streamingnode. - add go unittest for segcore operations. Signed-off-by: chyezh <chyezh@outlook.com>
20 lines
352 B
Go
20 lines
352 B
Go
package segcore
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestConsumeCStatusIntoError(t *testing.T) {
|
|
err := ConsumeCStatusIntoError(nil)
|
|
assert.NoError(t, err)
|
|
}
|
|
|
|
func TestGetLocalUsedSize(t *testing.T) {
|
|
size, err := GetLocalUsedSize(context.Background(), "")
|
|
assert.NoError(t, err)
|
|
assert.NotNil(t, size)
|
|
}
|