mock.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: coin.go
  3. // Package coin is a generated GoMock package.
  4. package coin
  5. import (
  6. context "context"
  7. gomock "github.com/golang/mock/gomock"
  8. model "go-common/app/service/main/coin/model"
  9. reflect "reflect"
  10. )
  11. // MockRPC is a mock of RPC interface
  12. type MockRPC struct {
  13. ctrl *gomock.Controller
  14. recorder *MockRPCMockRecorder
  15. }
  16. // MockRPCMockRecorder is the mock recorder for MockRPC
  17. type MockRPCMockRecorder struct {
  18. mock *MockRPC
  19. }
  20. // NewMockRPC creates a new mock instance
  21. func NewMockRPC(ctrl *gomock.Controller) *MockRPC {
  22. mock := &MockRPC{ctrl: ctrl}
  23. mock.recorder = &MockRPCMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use
  27. func (m *MockRPC) EXPECT() *MockRPCMockRecorder {
  28. return m.recorder
  29. }
  30. // AddCoins mocks base method
  31. func (m *MockRPC) AddCoins(c context.Context, arg *model.ArgAddCoin) error {
  32. ret := m.ctrl.Call(m, "AddCoins", c, arg)
  33. ret0, _ := ret[0].(error)
  34. return ret0
  35. }
  36. // AddCoins indicates an expected call of AddCoins
  37. func (mr *MockRPCMockRecorder) AddCoins(c, arg interface{}) *gomock.Call {
  38. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCoins", reflect.TypeOf((*MockRPC)(nil).AddCoins), c, arg)
  39. }
  40. // ArchiveUserCoins mocks base method
  41. func (m *MockRPC) ArchiveUserCoins(c context.Context, arg *model.ArgCoinInfo) (*model.ArchiveUserCoins, error) {
  42. ret := m.ctrl.Call(m, "ArchiveUserCoins", c, arg)
  43. ret0, _ := ret[0].(*model.ArchiveUserCoins)
  44. ret1, _ := ret[1].(error)
  45. return ret0, ret1
  46. }
  47. // ArchiveUserCoins indicates an expected call of ArchiveUserCoins
  48. func (mr *MockRPCMockRecorder) ArchiveUserCoins(c, arg interface{}) *gomock.Call {
  49. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArchiveUserCoins", reflect.TypeOf((*MockRPC)(nil).ArchiveUserCoins), c, arg)
  50. }
  51. // UserCoins mocks base method
  52. func (m *MockRPC) UserCoins(c context.Context, arg *model.ArgCoinInfo) (float64, error) {
  53. ret := m.ctrl.Call(m, "UserCoins", c, arg)
  54. ret0, _ := ret[0].(float64)
  55. ret1, _ := ret[1].(error)
  56. return ret0, ret1
  57. }
  58. // UserCoins indicates an expected call of UserCoins
  59. func (mr *MockRPCMockRecorder) UserCoins(c, arg interface{}) *gomock.Call {
  60. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserCoins", reflect.TypeOf((*MockRPC)(nil).UserCoins), c, arg)
  61. }