testmock

package
v0.0.0-...-1b864e3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package testmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUser

func GetUser(m MyFunc) string

Types

type MockMyFunc

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

MockMyFunc is a mock of MyFunc interface.

func NewMockMyFunc

func NewMockMyFunc(ctrl *gomock.Controller) *MockMyFunc

NewMockMyFunc creates a new mock instance.

func (*MockMyFunc) EXPECT

func (m *MockMyFunc) EXPECT() *MockMyFuncMockRecorder

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

func (*MockMyFunc) GetInfo

func (m *MockMyFunc) GetInfo() string

GetInfo mocks base method.

type MockMyFuncMockRecorder

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

MockMyFuncMockRecorder is the mock recorder for MockMyFunc.

func (*MockMyFuncMockRecorder) GetInfo

func (mr *MockMyFuncMockRecorder) GetInfo() *gomock.Call

GetInfo indicates an expected call of GetInfo.

type MyFunc

type MyFunc interface {
	GetInfo() string
}

Jump to

Keyboard shortcuts

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