repository.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: internal/repository/repository.go
  3. // Package mock_repository is a generated GoMock package.
  4. package mock_repository
  5. import (
  6. context "context"
  7. reflect "reflect"
  8. gomock "github.com/golang/mock/gomock"
  9. )
  10. // MockTransaction is a mock of Transaction interface.
  11. type MockTransaction struct {
  12. ctrl *gomock.Controller
  13. recorder *MockTransactionMockRecorder
  14. }
  15. // MockTransactionMockRecorder is the mock recorder for MockTransaction.
  16. type MockTransactionMockRecorder struct {
  17. mock *MockTransaction
  18. }
  19. // NewMockTransaction creates a new mock instance.
  20. func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction {
  21. mock := &MockTransaction{ctrl: ctrl}
  22. mock.recorder = &MockTransactionMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use.
  26. func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder {
  27. return m.recorder
  28. }
  29. // Transaction mocks base method.
  30. func (m *MockTransaction) Transaction(ctx context.Context, fn func(context.Context) error) error {
  31. m.ctrl.T.Helper()
  32. ret := m.ctrl.Call(m, "Transaction", ctx, fn)
  33. ret0, _ := ret[0].(error)
  34. return ret0
  35. }
  36. // Transaction indicates an expected call of Transaction.
  37. func (mr *MockTransactionMockRecorder) Transaction(ctx, fn interface{}) *gomock.Call {
  38. mr.mock.ctrl.T.Helper()
  39. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Transaction", reflect.TypeOf((*MockTransaction)(nil).Transaction), ctx, fn)
  40. }