TDengine/tools/keeper/process/builder_test.go
guozhenwei 07a943655b
test: add keeper test cases (#33319)
* test: add collect test case

* test: add zabbix test

* test: add adapter2 test

* test: add audit test

* test: add checkhealth test

* test: add common test

* test: add gen_metric test

* test: add command test

* test: add connector test

* test: add log test

* test: add web test

* test: add builder test

* test: add handle test

* test: add util test

* test: add audit test

* test: add adapter2 test

* test: modify test case
2025-10-23 18:10:30 +08:00

23 lines
433 B
Go

package process
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
"github.com/taosdata/taoskeeper/infrastructure/config"
)
func TestExpandMetricsFromConfig(t *testing.T) {
ctx := context.Background()
cfg := &config.MetricsConfig{
Tables: []string{"t1", "t1", "t2", "t2"},
Database: config.Database{
Name: "db",
},
}
assert.Panics(t, func() {
_, _ = ExpandMetricsFromConfig(ctx, nil, cfg)
})
}