mirror of https://github.com/milvus-io/milvus.git
16 lines
307 B
Go
16 lines
307 B
Go
package optimizer
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/milvus-io/milvus/internal/mysqld/planner"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test_defaultCBO_Optimize(t *testing.T) {
|
|
cbo := NewDefaultCBO()
|
|
plan := &planner.PhysicalPlan{}
|
|
optimized := cbo.Optimize(plan)
|
|
assert.Same(t, plan, optimized)
|
|
}
|