watcher/pkg/options/config_test.go
timerzz ba47d0a32a
Some checks failed
Build image / build (push) Failing after 20s
feat 抽出公共方法到common
2024-05-13 20:18:13 +08:00

17 lines
309 B
Go

package options
import (
"gitea.timerzz.com/kedaya_haitao/common/pkg/database"
"gopkg.in/yaml.v3"
"os"
"testing"
)
func TestGenConfig(t *testing.T) {
var opt = Config{
DB: database.DBOption{},
Proxy: ProxyOption{Subscribes: []string{"123", "345"}},
}
yaml.NewEncoder(os.Stdout).Encode(&opt)
}