mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
17 lines
266 B
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 {}
|
|
}
|