mysql_test.go 406 B

123456789101112131415161718192021
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoAuth(t *testing.T) {
  8. var (
  9. c = context.Background()
  10. )
  11. convey.Convey("Auth", t, func(ctx convey.C) {
  12. auths, err := d.Auth(c)
  13. ctx.Convey("Then err should be nil.auths should not be nil.", func(ctx convey.C) {
  14. ctx.So(err, convey.ShouldBeNil)
  15. ctx.So(auths, convey.ShouldNotBeNil)
  16. })
  17. })
  18. }