mock

package
v0.0.0-...-885dfc5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdminSrv

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

MockAdminSrv is a mock of AdminSrv interface.

func NewMockAdminSrv

func NewMockAdminSrv(ctrl *gomock.Controller) *MockAdminSrv

NewMockAdminSrv creates a new mock instance.

func (*MockAdminSrv) EXPECT

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

func (*MockAdminSrv) GetAdminInfo

func (m *MockAdminSrv) GetAdminInfo(arg0 int) string

GetAdminInfo mocks base method.

func (*MockAdminSrv) GetUserById

func (m *MockAdminSrv) GetUserById(arg0 int) string

GetUserById mocks base method.

func (*MockAdminSrv) Update

func (m *MockAdminSrv) Update(arg0 int, arg1 interface{}) (string, error)

Update mocks base method.

type MockAdminSrvMockRecorder

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

MockAdminSrvMockRecorder is the mock recorder for MockAdminSrv.

func (*MockAdminSrvMockRecorder) GetAdminInfo

func (mr *MockAdminSrvMockRecorder) GetAdminInfo(arg0 interface{}) *gomock.Call

GetAdminInfo indicates an expected call of GetAdminInfo.

func (*MockAdminSrvMockRecorder) GetUserById

func (mr *MockAdminSrvMockRecorder) GetUserById(arg0 interface{}) *gomock.Call

GetUserById indicates an expected call of GetUserById.

func (*MockAdminSrvMockRecorder) Update

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

Update indicates an expected call of Update.

type MockUserSrv

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

MockUserSrv is a mock of UserSrv interface.

func NewMockUserSrv

func NewMockUserSrv(ctrl *gomock.Controller) *MockUserSrv

NewMockUserSrv creates a new mock instance.

func (*MockUserSrv) EXPECT

func (m *MockUserSrv) EXPECT() *MockUserSrvMockRecorder

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

func (*MockUserSrv) GetUserById

func (m *MockUserSrv) GetUserById(id int) string

GetUserById mocks base method.

func (*MockUserSrv) Update

func (m *MockUserSrv) Update(id int, data interface{}) (string, error)

Update mocks base method.

type MockUserSrvMockRecorder

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

MockUserSrvMockRecorder is the mock recorder for MockUserSrv.

func (*MockUserSrvMockRecorder) GetUserById

func (mr *MockUserSrvMockRecorder) GetUserById(id interface{}) *gomock.Call

GetUserById indicates an expected call of GetUserById.

func (*MockUserSrvMockRecorder) Update

func (mr *MockUserSrvMockRecorder) Update(id, data 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