Create & Init Project...
This commit is contained in:
18
app/job/main/answer/conf/conf_test.go
Normal file
18
app/job/main/answer/conf/conf_test.go
Normal file
@ -0,0 +1,18 @@
|
||||
package conf
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestInit(t *testing.T) {
|
||||
flag.Set("conf", "../cmd/answer-job-test.toml")
|
||||
flag.Parse()
|
||||
var err error
|
||||
if err = Init(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if Conf == nil {
|
||||
t.Fatal()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user