watcher/pkg/options/config_test.go

17 lines
309 B
Go
Raw Normal View History

2024-04-10 17:36:56 +08:00
package options
import (
2024-05-13 20:18:13 +08:00
"gitea.timerzz.com/kedaya_haitao/common/pkg/database"
2024-04-10 17:36:56 +08:00
"gopkg.in/yaml.v3"
"os"
"testing"
)
func TestGenConfig(t *testing.T) {
var opt = Config{
2024-05-13 20:18:13 +08:00
DB: database.DBOption{},
2024-04-10 17:36:56 +08:00
Proxy: ProxyOption{Subscribes: []string{"123", "345"}},
}
yaml.NewEncoder(os.Stdout).Encode(&opt)
}