V2bX/conf/conf_test.go

17 lines
266 B
Go

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