mocks

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockForwarderClient

type MockForwarderClient struct {
	mock.Mock
}

MockForwarderClient is an autogenerated mock type for the chronicleForwarderClient type

func NewMockForwarderClient

func NewMockForwarderClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockForwarderClient

NewMockForwarderClient creates a new instance of MockForwarderClient. 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 (*MockForwarderClient) Dial

func (_m *MockForwarderClient) Dial(network string, address string) (net.Conn, error)

Dial provides a mock function with given fields: network, address

func (*MockForwarderClient) DialWithTLS

func (_m *MockForwarderClient) DialWithTLS(network string, addr string, config *tls.Config) (*tls.Conn, error)

DialWithTLS provides a mock function with given fields: network, addr, config

func (*MockForwarderClient) EXPECT

func (*MockForwarderClient) OpenFile

func (_m *MockForwarderClient) OpenFile(name string) (*os.File, error)

OpenFile provides a mock function with given fields: name

type MockForwarderClient_DialWithTLS_Call

type MockForwarderClient_DialWithTLS_Call struct {
	*mock.Call
}

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

func (*MockForwarderClient_DialWithTLS_Call) Return

func (*MockForwarderClient_DialWithTLS_Call) Run

func (*MockForwarderClient_DialWithTLS_Call) RunAndReturn

type MockForwarderClient_Dial_Call

type MockForwarderClient_Dial_Call struct {
	*mock.Call
}

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

func (*MockForwarderClient_Dial_Call) Return

func (*MockForwarderClient_Dial_Call) Run

func (_c *MockForwarderClient_Dial_Call) Run(run func(network string, address string)) *MockForwarderClient_Dial_Call

func (*MockForwarderClient_Dial_Call) RunAndReturn

type MockForwarderClient_Expecter

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

func (*MockForwarderClient_Expecter) Dial

func (_e *MockForwarderClient_Expecter) Dial(network interface{}, address interface{}) *MockForwarderClient_Dial_Call

Dial is a helper method to define mock.On call

  • network string
  • address string

func (*MockForwarderClient_Expecter) DialWithTLS

func (_e *MockForwarderClient_Expecter) DialWithTLS(network interface{}, addr interface{}, config interface{}) *MockForwarderClient_DialWithTLS_Call

DialWithTLS is a helper method to define mock.On call

  • network string
  • addr string
  • config *tls.Config

func (*MockForwarderClient_Expecter) OpenFile

func (_e *MockForwarderClient_Expecter) OpenFile(name interface{}) *MockForwarderClient_OpenFile_Call

OpenFile is a helper method to define mock.On call

  • name string

type MockForwarderClient_OpenFile_Call

type MockForwarderClient_OpenFile_Call struct {
	*mock.Call
}

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

func (*MockForwarderClient_OpenFile_Call) Return

func (*MockForwarderClient_OpenFile_Call) Run

func (*MockForwarderClient_OpenFile_Call) RunAndReturn

Jump to

Keyboard shortcuts

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