milvus/internal/util/segcore/cgo_util_test.go
Zhen Ye c6dcef7b84
enhance: move segcore codes of segment into one package (#37722)
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>
2024-11-29 10:22:36 +08:00

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)
}