116 lines
3.7 KiB
Go
116 lines
3.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./internal/model/mongo/auto_id_model.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=./internal/model/mongo/auto_id_model.go -destination=./internal/mock/model/auto_id_model.go -package=mock
|
|
//
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
model "app-cloudep-member-server/internal/model/mongo"
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
mongo "go.mongodb.org/mongo-driver/mongo"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockAutoIdModel is a mock of AutoIdModel interface.
|
|
type MockAutoIdModel struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAutoIdModelMockRecorder
|
|
}
|
|
|
|
// MockAutoIdModelMockRecorder is the mock recorder for MockAutoIdModel.
|
|
type MockAutoIdModelMockRecorder struct {
|
|
mock *MockAutoIdModel
|
|
}
|
|
|
|
// NewMockAutoIdModel creates a new mock instance.
|
|
func NewMockAutoIdModel(ctrl *gomock.Controller) *MockAutoIdModel {
|
|
mock := &MockAutoIdModel{ctrl: ctrl}
|
|
mock.recorder = &MockAutoIdModelMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAutoIdModel) EXPECT() *MockAutoIdModelMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Delete mocks base method.
|
|
func (m *MockAutoIdModel) Delete(ctx context.Context, id string) (int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Delete", ctx, id)
|
|
ret0, _ := ret[0].(int64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Delete indicates an expected call of Delete.
|
|
func (mr *MockAutoIdModelMockRecorder) Delete(ctx, id any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAutoIdModel)(nil).Delete), ctx, id)
|
|
}
|
|
|
|
// FindOne mocks base method.
|
|
func (m *MockAutoIdModel) FindOne(ctx context.Context, id string) (*model.AutoId, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindOne", ctx, id)
|
|
ret0, _ := ret[0].(*model.AutoId)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindOne indicates an expected call of FindOne.
|
|
func (mr *MockAutoIdModelMockRecorder) FindOne(ctx, id any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockAutoIdModel)(nil).FindOne), ctx, id)
|
|
}
|
|
|
|
// Inc mocks base method.
|
|
func (m *MockAutoIdModel) Inc(ctx context.Context, data *model.AutoId) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Inc", ctx, data)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Inc indicates an expected call of Inc.
|
|
func (mr *MockAutoIdModelMockRecorder) Inc(ctx, data any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Inc", reflect.TypeOf((*MockAutoIdModel)(nil).Inc), ctx, data)
|
|
}
|
|
|
|
// Insert mocks base method.
|
|
func (m *MockAutoIdModel) Insert(ctx context.Context, data *model.AutoId) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Insert", ctx, data)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Insert indicates an expected call of Insert.
|
|
func (mr *MockAutoIdModelMockRecorder) Insert(ctx, data any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockAutoIdModel)(nil).Insert), ctx, data)
|
|
}
|
|
|
|
// Update mocks base method.
|
|
func (m *MockAutoIdModel) Update(ctx context.Context, data *model.AutoId) (*mongo.UpdateResult, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Update", ctx, data)
|
|
ret0, _ := ret[0].(*mongo.UpdateResult)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Update indicates an expected call of Update.
|
|
func (mr *MockAutoIdModelMockRecorder) Update(ctx, data any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAutoIdModel)(nil).Update), ctx, data)
|
|
}
|