coin_test.go 434 B

12345678910111213141516171819202122
  1. package service
  2. import (
  3. "context"
  4. coinm "go-common/app/service/main/coin/model"
  5. "testing"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. var (
  9. testCoinMid int64 = 130
  10. )
  11. // go test -test.v -test.run TestPutCoinInfo
  12. func TestPutCoinInfo(t *testing.T) {
  13. Convey("TestPutCoinInfo put coin info", t, WithService(func(s *Service) {
  14. So(s.PutCoinInfo(context.TODO(), &coinm.DataBus{
  15. Mid: testCoinMid,
  16. }), ShouldBeNil)
  17. }))
  18. }