transformer_mock.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: transformer.go
  3. // Package transformer is a generated GoMock package.
  4. package transformer
  5. import (
  6. context "context"
  7. gomock "github.com/golang/mock/gomock"
  8. reflect "reflect"
  9. )
  10. // MockTransformer is a mock of Transformer interface
  11. type MockTransformer struct {
  12. ctrl *gomock.Controller
  13. recorder *MockTransformerMockRecorder
  14. }
  15. // MockTransformerMockRecorder is the mock recorder for MockTransformer
  16. type MockTransformerMockRecorder struct {
  17. mock *MockTransformer
  18. }
  19. // NewMockTransformer creates a new mock instance
  20. func NewMockTransformer(ctrl *gomock.Controller) *MockTransformer {
  21. mock := &MockTransformer{ctrl: ctrl}
  22. mock.recorder = &MockTransformerMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use
  26. func (m *MockTransformer) EXPECT() *MockTransformerMockRecorder {
  27. return m.recorder
  28. }
  29. // Expand mocks base method
  30. func (m *MockTransformer) Expand(ctx context.Context, in *ExpandReq) (*ExpandResp, error) {
  31. m.ctrl.T.Helper()
  32. ret := m.ctrl.Call(m, "Expand", ctx, in)
  33. ret0, _ := ret[0].(*ExpandResp)
  34. ret1, _ := ret[1].(error)
  35. return ret0, ret1
  36. }
  37. // Expand indicates an expected call of Expand
  38. func (mr *MockTransformerMockRecorder) Expand(ctx, in interface{}) *gomock.Call {
  39. mr.mock.ctrl.T.Helper()
  40. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Expand", reflect.TypeOf((*MockTransformer)(nil).Expand), ctx, in)
  41. }
  42. // Shorten mocks base method
  43. func (m *MockTransformer) Shorten(ctx context.Context, in *ShortenReq) (*ShortenResp, error) {
  44. m.ctrl.T.Helper()
  45. ret := m.ctrl.Call(m, "Shorten", ctx, in)
  46. ret0, _ := ret[0].(*ShortenResp)
  47. ret1, _ := ret[1].(error)
  48. return ret0, ret1
  49. }
  50. // Shorten indicates an expected call of Shorten
  51. func (mr *MockTransformerMockRecorder) Shorten(ctx, in interface{}) *gomock.Call {
  52. mr.mock.ctrl.T.Helper()
  53. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shorten", reflect.TypeOf((*MockTransformer)(nil).Shorten), ctx, in)
  54. }