conf_test.go 230 B

12345678910111213141516
  1. package conf
  2. import (
  3. "flag"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestConf(t *testing.T) {
  8. Convey("", t, func() {
  9. flag.Set("conf", "../cmd/test.toml")
  10. err := Init()
  11. So(err, ShouldBeNil)
  12. })
  13. }