subpkg1

package
v2.31.10 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Foo

type Foo interface {
	Get() string
}

type MockFoo

type MockFoo struct {
	mock.Mock
}

MockFoo is an autogenerated mock type for the Foo type

func NewMockFoo

func NewMockFoo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFoo

NewMockFoo creates a new instance of MockFoo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockFoo) EXPECT

func (_m *MockFoo) EXPECT() *MockFoo_Expecter

func (*MockFoo) Get

func (_m *MockFoo) Get() string

Get provides a mock function with given fields:

type MockFoo_Expecter

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

func (*MockFoo_Expecter) Get

Get is a helper method to define mock.On call

type MockFoo_Get_Call

type MockFoo_Get_Call struct {
	*mock.Call
}

MockFoo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockFoo_Get_Call) Return

func (_c *MockFoo_Get_Call) Return(_a0 string) *MockFoo_Get_Call

func (*MockFoo_Get_Call) Run

func (_c *MockFoo_Get_Call) Run(run func()) *MockFoo_Get_Call

func (*MockFoo_Get_Call) RunAndReturn

func (_c *MockFoo_Get_Call) RunAndReturn(run func() string) *MockFoo_Get_Call

Jump to

Keyboard shortcuts

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