ugc_test.go 469 B

1234567891011121314151617181920212223
  1. package web
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestWebUgcSearch(t *testing.T) {
  8. convey.Convey("UgcSearch", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. data map[string]interface{}
  12. )
  13. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  14. err := d.UgcSearch(c, data)
  15. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  16. ctx.So(err, convey.ShouldBeNil)
  17. })
  18. })
  19. })
  20. }