V2bX/conf/conf_test.go
2023-08-20 15:13:52 +08:00

17 lines
253 B
Go

package conf
import (
"testing"
)
func TestConf_LoadFromPath(t *testing.T) {
c := New()
t.Log(c.LoadFromPath("./config.json"), c.NodeConfig)
}
func TestConf_Watch(t *testing.T) {
c := New()
t.Log(c.Watch("./1.json", "", func() {}))
select {}
}