mock

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

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 MockSvc

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

MockSvc is a mock of Svc interface

func NewMockSvc

func NewMockSvc(ctrl *gomock.Controller) *MockSvc

NewMockSvc creates a new mock instance

func (*MockSvc) Close

func (m *MockSvc) Close()

Close mocks base method

func (*MockSvc) CreateUser

func (m *MockSvc) CreateUser(arg0 context.Context, arg1 *model.User) error

CreateUser mocks base method

func (*MockSvc) DeleteUser

func (m *MockSvc) DeleteUser(arg0 context.Context, arg1 int64) error

DeleteUser mocks base method

func (*MockSvc) EXPECT

func (m *MockSvc) EXPECT() *MockSvcMockRecorder

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

func (*MockSvc) HandPing added in v1.6.0

func (m *MockSvc) HandPing(arg0 context.Context, arg1 *model.Ping) (*model.Ping, error)

HandPing mocks base method

func (*MockSvc) Ping

func (m *MockSvc) Ping(arg0 context.Context) error

Ping mocks base method

func (*MockSvc) ReadUser

func (m *MockSvc) ReadUser(arg0 context.Context, arg1 int64) (*model.User, error)

ReadUser mocks base method

func (*MockSvc) UpdateUser

func (m *MockSvc) UpdateUser(arg0 context.Context, arg1 *model.User) error

UpdateUser mocks base method

type MockSvcMockRecorder

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

MockSvcMockRecorder is the mock recorder for MockSvc

func (*MockSvcMockRecorder) Close

func (mr *MockSvcMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockSvcMockRecorder) CreateUser

func (mr *MockSvcMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser

func (*MockSvcMockRecorder) DeleteUser

func (mr *MockSvcMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser

func (*MockSvcMockRecorder) HandPing added in v1.6.0

func (mr *MockSvcMockRecorder) HandPing(arg0, arg1 interface{}) *gomock.Call

HandPing indicates an expected call of HandPing

func (*MockSvcMockRecorder) Ping

func (mr *MockSvcMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockSvcMockRecorder) ReadUser

func (mr *MockSvcMockRecorder) ReadUser(arg0, arg1 interface{}) *gomock.Call

ReadUser indicates an expected call of ReadUser

func (*MockSvcMockRecorder) UpdateUser

func (mr *MockSvcMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser

Jump to

Keyboard shortcuts

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