milvus/internal/util/segcore/requests_test.go
congqixia cb7f2fa6fd
enhance: Use v2 package name for pkg module (#39990)
Related to #39095

https://go.dev/doc/modules/version-numbers

Update pkg version according to golang dep version convention

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-02-22 23:15:58 +08:00

35 lines
611 B
Go

package segcore
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus/pkg/v2/proto/datapb"
)
func TestLoadFieldDataRequest(t *testing.T) {
req := &LoadFieldDataRequest{
Fields: []LoadFieldDataInfo{{
Field: &datapb.FieldBinlog{
FieldID: 1,
Binlogs: []*datapb.Binlog{
{
EntriesNum: 100,
LogPath: "1",
}, {
EntriesNum: 101,
LogPath: "2",
},
},
},
}},
RowCount: 100,
MMapDir: "1234567890",
}
creq, err := req.getCLoadFieldDataRequest()
assert.NoError(t, err)
assert.NotNil(t, creq)
creq.Release()
}