mirror of https://github.com/milvus-io/milvus.git
15 lines
327 B
Go
15 lines
327 B
Go
package indexparamcheck
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
|
|
)
|
|
|
|
func TestCheckIndexValid(t *testing.T) {
|
|
scalarIndexChecker := &scalarIndexChecker{}
|
|
assert.NoError(t, scalarIndexChecker.CheckTrain(schemapb.DataType_Bool, map[string]string{}))
|
|
}
|