mocks

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRpcReadWriter

type MockRpcReadWriter struct {
	mock.Mock
}

MockRpcReadWriter is an autogenerated mock type for the RpcReadWriter type

func NewMockRpcReadWriter

func NewMockRpcReadWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRpcReadWriter

NewMockRpcReadWriter creates a new instance of MockRpcReadWriter. 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 (*MockRpcReadWriter) EXPECT

func (*MockRpcReadWriter) Read

func (_m *MockRpcReadWriter) Read(_a0 context.Context) (*goatorepo.Rpc, error)

Read provides a mock function with given fields: _a0

func (*MockRpcReadWriter) Write

func (_m *MockRpcReadWriter) Write(_a0 context.Context, _a1 *goatorepo.Rpc) error

Write provides a mock function with given fields: _a0, _a1

type MockRpcReadWriter_Expecter

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

func (*MockRpcReadWriter_Expecter) Read

func (_e *MockRpcReadWriter_Expecter) Read(_a0 interface{}) *MockRpcReadWriter_Read_Call

Read is a helper method to define mock.On call

  • _a0 context.Context

func (*MockRpcReadWriter_Expecter) Write

func (_e *MockRpcReadWriter_Expecter) Write(_a0 interface{}, _a1 interface{}) *MockRpcReadWriter_Write_Call

Write is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *goatorepo.Rpc

type MockRpcReadWriter_Read_Call

type MockRpcReadWriter_Read_Call struct {
	*mock.Call
}

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

func (*MockRpcReadWriter_Read_Call) Return

func (*MockRpcReadWriter_Read_Call) Run

func (*MockRpcReadWriter_Read_Call) RunAndReturn

type MockRpcReadWriter_Write_Call

type MockRpcReadWriter_Write_Call struct {
	*mock.Call
}

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

func (*MockRpcReadWriter_Write_Call) Return

func (*MockRpcReadWriter_Write_Call) Run

func (*MockRpcReadWriter_Write_Call) RunAndReturn

Jump to

Keyboard shortcuts

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