mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-23 10:28:13 -05:00
17 lines
253 B
Go
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 {}
|
|
}
|