17 lines
230 B
Go
17 lines
230 B
Go
|
package conf
|
||
|
|
||
|
import (
|
||
|
"flag"
|
||
|
"testing"
|
||
|
|
||
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
)
|
||
|
|
||
|
func TestConf(t *testing.T) {
|
||
|
Convey("", t, func() {
|
||
|
flag.Set("conf", "../cmd/test.toml")
|
||
|
err := Init()
|
||
|
So(err, ShouldBeNil)
|
||
|
})
|
||
|
}
|