remote_test.go 504 B

1234567891011121314151617181920212223
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoGetPGCInfo(t *testing.T) {
  8. convey.Convey("GetPGCInfo", t, func(convCtx convey.C) {
  9. var (
  10. c = context.Background()
  11. oid = int32(0)
  12. )
  13. convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
  14. _, err := d.GetPGCInfo(c, oid)
  15. convCtx.Convey("Then err should be nil.r should not be nil.", func(convCtx convey.C) {
  16. convCtx.So(err, convey.ShouldBeNil)
  17. })
  18. })
  19. })
  20. }