qq_test.go 525 B

123456789101112131415161718192021222324
  1. package dao
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestDao_QQUnionID(t *testing.T) {
  9. var (
  10. c = context.Background()
  11. openID = "2A9FE674CE0810761DC3F420239A8CD7"
  12. )
  13. convey.Convey("QQUnionID", t, func(ctx convey.C) {
  14. res, err := d.QQUnionID(c, openID)
  15. ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) {
  16. ctx.So(err, convey.ShouldBeNil)
  17. ctx.So(res, convey.ShouldNotBeNil)
  18. })
  19. fmt.Printf("(%+v) error(%+v)", res, err)
  20. })
  21. }