mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWapcClient

type MockWapcClient struct {
	mock.Mock
}

MockWapcClient is an autogenerated mock type for the WapcClient type

func NewMockWapcClient

func NewMockWapcClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWapcClient

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

func (*MockWapcClient) HostCall

func (_m *MockWapcClient) HostCall(binding string, namespace string, operation string, payload []byte) ([]byte, error)

HostCall provides a mock function with given fields: binding, namespace, operation, payload

type MockWapcClient_Expecter

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

func (*MockWapcClient_Expecter) HostCall

func (_e *MockWapcClient_Expecter) HostCall(binding interface{}, namespace interface{}, operation interface{}, payload interface{}) *MockWapcClient_HostCall_Call

HostCall is a helper method to define mock.On call

  • binding string
  • namespace string
  • operation string
  • payload []byte

type MockWapcClient_HostCall_Call

type MockWapcClient_HostCall_Call struct {
	*mock.Call
}

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

func (*MockWapcClient_HostCall_Call) Return

func (*MockWapcClient_HostCall_Call) Run

func (_c *MockWapcClient_HostCall_Call) Run(run func(binding string, namespace string, operation string, payload []byte)) *MockWapcClient_HostCall_Call

func (*MockWapcClient_HostCall_Call) RunAndReturn

Jump to

Keyboard shortcuts

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