Created
October 23, 2021 12:20
-
-
Save dickyaryag6/4192489b39a934cc9495af5265734b82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Code generated by MockGen. DO NOT EDIT. | |
| // Source: gomocking/repository (interfaces: DatabaseInterface) | |
| // Package mocks is a generated GoMock package. | |
| package mocks | |
| import ( | |
| gomock "github.com/golang/mock/gomock" | |
| reflect "reflect" | |
| ) | |
| // MockDatabaseInterface is a mock of DatabaseInterface interface | |
| type MockDatabaseInterface struct { | |
| ctrl *gomock.Controller | |
| recorder *MockDatabaseInterfaceMockRecorder | |
| } | |
| // MockDatabaseInterfaceMockRecorder is the mock recorder for MockDatabaseInterface | |
| type MockDatabaseInterfaceMockRecorder struct { | |
| mock *MockDatabaseInterface | |
| } | |
| // NewMockDatabaseInterface creates a new mock instance | |
| func NewMockDatabaseInterface(ctrl *gomock.Controller) *MockDatabaseInterface { | |
| mock := &MockDatabaseInterface{ctrl: ctrl} | |
| mock.recorder = &MockDatabaseInterfaceMockRecorder{mock} | |
| return mock | |
| } | |
| // EXPECT returns an object that allows the caller to indicate expected use | |
| func (m *MockDatabaseInterface) EXPECT() *MockDatabaseInterfaceMockRecorder { | |
| return m.recorder | |
| } | |
| // Insert mocks base method | |
| func (m *MockDatabaseInterface) Insert(arg0 int) error { | |
| m.ctrl.T.Helper() | |
| ret := m.ctrl.Call(m, "Insert", arg0) | |
| ret0, _ := ret[0].(error) | |
| return ret0 | |
| } | |
| // Insert indicates an expected call of Insert | |
| func (mr *MockDatabaseInterfaceMockRecorder) Insert(arg0 interface{}) *gomock.Call { | |
| mr.mock.ctrl.T.Helper() | |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockDatabaseInterface)(nil).Insert), arg0) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment