mockmodel

package
v1.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_model is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserModel

type MockUserModel struct {
	// contains filtered or unexported fields
}

MockUserModel is a mock of UserModel interface.

func NewMockUserModel

func NewMockUserModel(ctrl *gomock.Controller) *MockUserModel

NewMockUserModel creates a new mock instance.

func (*MockUserModel) Delete

func (m *MockUserModel) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method.

func (*MockUserModel) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserModel) FindOne

func (m *MockUserModel) FindOne(arg0 context.Context, arg1 string) (*model.User, error)

FindOne mocks base method.

func (*MockUserModel) FindOneByAuth

func (m *MockUserModel) FindOneByAuth(arg0 context.Context, arg1 model.Auth) (*model.User, error)

FindOneByAuth mocks base method.

func (*MockUserModel) Insert

func (m *MockUserModel) Insert(arg0 context.Context, arg1 *model.User) error

Insert mocks base method.

func (*MockUserModel) Update

func (m *MockUserModel) Update(arg0 context.Context, arg1 *model.User) error

Update mocks base method.

type MockUserModelMockRecorder

type MockUserModelMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserModelMockRecorder is the mock recorder for MockUserModel.

func (*MockUserModelMockRecorder) Delete

func (mr *MockUserModelMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUserModelMockRecorder) FindOne

func (mr *MockUserModelMockRecorder) FindOne(arg0, arg1 interface{}) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockUserModelMockRecorder) FindOneByAuth

func (mr *MockUserModelMockRecorder) FindOneByAuth(arg0, arg1 interface{}) *gomock.Call

FindOneByAuth indicates an expected call of FindOneByAuth.

func (*MockUserModelMockRecorder) Insert

func (mr *MockUserModelMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockUserModelMockRecorder) Update

func (mr *MockUserModelMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL