You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
434 B
22 lines
434 B
package service |
|
|
|
import ( |
|
"context" |
|
coinm "go-common/app/service/main/coin/model" |
|
"testing" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
var ( |
|
testCoinMid int64 = 130 |
|
) |
|
|
|
// go test -test.v -test.run TestPutCoinInfo |
|
func TestPutCoinInfo(t *testing.T) { |
|
Convey("TestPutCoinInfo put coin info", t, WithService(func(s *Service) { |
|
So(s.PutCoinInfo(context.TODO(), &coinm.DataBus{ |
|
Mid: testCoinMid, |
|
}), ShouldBeNil) |
|
})) |
|
}
|
|
|