milvus/internal/metastore/catalog_test.go
Jiquan Long a5e2d6b6fb
Refactor RootCoord (#18930)
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Co-authored-by: xaxys <tpnnghd@163.com>

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Co-authored-by: xaxys <tpnnghd@163.com>
2022-09-05 13:29:11 +08:00

36 lines
495 B
Go

package metastore
import "testing"
func TestAlterType_String(t *testing.T) {
tests := []struct {
name string
t AlterType
want string
}{
{
t: ADD,
want: "ADD",
},
{
t: DELETE,
want: "DELETE",
},
{
t: MODIFY,
want: "MODIFY",
},
{
t: -1,
want: "",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := tt.t.String(); got != tt.want {
t.Errorf("String() = %v, want %v", got, tt.want)
}
})
}
}