V2bX/conf/conf_test.go

17 lines
266 B
Go
Raw Permalink Normal View History

2023-04-07 01:11:56 -04:00
package conf
2023-05-21 23:20:09 -04:00
2023-06-01 22:18:10 -04:00
import (
"testing"
)
2023-05-21 23:20:09 -04:00
func TestConf_LoadFromPath(t *testing.T) {
c := New()
2023-08-20 10:24:57 -04:00
t.Log(c.LoadFromPath("../example/config.json"), c.NodeConfig)
2023-05-21 23:20:09 -04:00
}
2023-06-01 22:18:10 -04:00
func TestConf_Watch(t *testing.T) {
2023-08-20 03:13:52 -04:00
c := New()
t.Log(c.Watch("./1.json", "", "", func() {}))
2023-08-20 03:13:52 -04:00
select {}
2023-06-01 22:18:10 -04:00
}