You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
voicebot/icsconf/icsconf_test.go

14 lines
259 B
Go

package icsconf
import (
"encoding/json"
"fmt"
"testing"
)
func TestGetModName(t *testing.T) {
conf, _ := OpenConfig("/home/icsbot/config/icsbot.xml", "/home/icsvc")
resultJson, _ := json.MarshalIndent(conf, "", " ")
fmt.Println(string(resultJson))
}