mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockaerospikeClient

type MockaerospikeClient struct {
	mock.Mock
}

MockaerospikeClient is an autogenerated mock type for the aerospikeClient type

func NewMockaerospikeClient

func NewMockaerospikeClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockaerospikeClient

NewMockaerospikeClient creates a new instance of MockaerospikeClient. 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 (*MockaerospikeClient) Cluster

func (_m *MockaerospikeClient) Cluster() *aerospike.Cluster

Cluster provides a mock function with given fields:

func (*MockaerospikeClient) EXPECT

type MockaerospikeClient_Cluster_Call

type MockaerospikeClient_Cluster_Call struct {
	*mock.Call
}

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

func (*MockaerospikeClient_Cluster_Call) Return

func (*MockaerospikeClient_Cluster_Call) Run

func (*MockaerospikeClient_Cluster_Call) RunAndReturn

type MockaerospikeClient_Expecter

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

func (*MockaerospikeClient_Expecter) Cluster

Cluster is a helper method to define mock.On call

type MockinfoGetter

type MockinfoGetter struct {
	mock.Mock
}

MockinfoGetter is an autogenerated mock type for the infoGetter type

func NewMockinfoGetter

func NewMockinfoGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockinfoGetter

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

func (*MockinfoGetter) RequestInfo

func (_m *MockinfoGetter) RequestInfo(infoPolicy *aerospike.InfoPolicy, commands ...string) (map[string]string, aerospike.Error)

RequestInfo provides a mock function with given fields: infoPolicy, commands

type MockinfoGetter_Expecter

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

func (*MockinfoGetter_Expecter) RequestInfo

func (_e *MockinfoGetter_Expecter) RequestInfo(infoPolicy interface{}, commands ...interface{}) *MockinfoGetter_RequestInfo_Call

RequestInfo is a helper method to define mock.On call

  • infoPolicy *aerospike.InfoPolicy
  • commands ...string

type MockinfoGetter_RequestInfo_Call

type MockinfoGetter_RequestInfo_Call struct {
	*mock.Call
}

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

func (*MockinfoGetter_RequestInfo_Call) Return

func (*MockinfoGetter_RequestInfo_Call) Run

func (_c *MockinfoGetter_RequestInfo_Call) Run(run func(infoPolicy *aerospike.InfoPolicy, commands ...string)) *MockinfoGetter_RequestInfo_Call

func (*MockinfoGetter_RequestInfo_Call) RunAndReturn

Jump to

Keyboard shortcuts

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