mock_grpc

package
v0.10.3-0...-54aaeda Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientStream

type MockClientStream struct {
	mock.Mock
}

MockClientStream is an autogenerated mock type for the ClientStream type

func NewMockClientStream

func NewMockClientStream(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientStream

NewMockClientStream creates a new instance of MockClientStream. 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 (*MockClientStream) CloseSend

func (_m *MockClientStream) CloseSend() error

CloseSend provides a mock function with given fields:

func (*MockClientStream) Context

func (_m *MockClientStream) Context() context.Context

Context provides a mock function with given fields:

func (*MockClientStream) EXPECT

func (*MockClientStream) Header

func (_m *MockClientStream) Header() (metadata.MD, error)

Header provides a mock function with given fields:

func (*MockClientStream) RecvMsg

func (_m *MockClientStream) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*MockClientStream) SendMsg

func (_m *MockClientStream) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*MockClientStream) Trailer

func (_m *MockClientStream) Trailer() metadata.MD

Trailer provides a mock function with given fields:

type MockClientStream_CloseSend_Call

type MockClientStream_CloseSend_Call struct {
	*mock.Call
}

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

func (*MockClientStream_CloseSend_Call) Return

func (*MockClientStream_CloseSend_Call) Run

func (*MockClientStream_CloseSend_Call) RunAndReturn

type MockClientStream_Context_Call

type MockClientStream_Context_Call struct {
	*mock.Call
}

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

func (*MockClientStream_Context_Call) Return

func (*MockClientStream_Context_Call) Run

func (*MockClientStream_Context_Call) RunAndReturn

type MockClientStream_Expecter

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

func (*MockClientStream_Expecter) CloseSend

CloseSend is a helper method to define mock.On call

func (*MockClientStream_Expecter) Context

Context is a helper method to define mock.On call

func (*MockClientStream_Expecter) Header

Header is a helper method to define mock.On call

func (*MockClientStream_Expecter) RecvMsg

func (_e *MockClientStream_Expecter) RecvMsg(m interface{}) *MockClientStream_RecvMsg_Call

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockClientStream_Expecter) SendMsg

func (_e *MockClientStream_Expecter) SendMsg(m interface{}) *MockClientStream_SendMsg_Call

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockClientStream_Expecter) Trailer

Trailer is a helper method to define mock.On call

type MockClientStream_Header_Call

type MockClientStream_Header_Call struct {
	*mock.Call
}

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

func (*MockClientStream_Header_Call) Return

func (*MockClientStream_Header_Call) Run

func (*MockClientStream_Header_Call) RunAndReturn

type MockClientStream_RecvMsg_Call

type MockClientStream_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockClientStream_RecvMsg_Call) Return

func (*MockClientStream_RecvMsg_Call) Run

func (_c *MockClientStream_RecvMsg_Call) Run(run func(m interface{})) *MockClientStream_RecvMsg_Call

func (*MockClientStream_RecvMsg_Call) RunAndReturn

func (_c *MockClientStream_RecvMsg_Call) RunAndReturn(run func(interface{}) error) *MockClientStream_RecvMsg_Call

type MockClientStream_SendMsg_Call

type MockClientStream_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockClientStream_SendMsg_Call) Return

func (*MockClientStream_SendMsg_Call) Run

func (_c *MockClientStream_SendMsg_Call) Run(run func(m interface{})) *MockClientStream_SendMsg_Call

func (*MockClientStream_SendMsg_Call) RunAndReturn

func (_c *MockClientStream_SendMsg_Call) RunAndReturn(run func(interface{}) error) *MockClientStream_SendMsg_Call

type MockClientStream_Trailer_Call

type MockClientStream_Trailer_Call struct {
	*mock.Call
}

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

func (*MockClientStream_Trailer_Call) Return

func (*MockClientStream_Trailer_Call) Run

func (*MockClientStream_Trailer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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