mocks

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTestServiceClient

type MockTestServiceClient struct {
	mock.Mock
}

MockTestServiceClient is an autogenerated mock type for the TestServiceClient type

func NewMockTestServiceClient

func NewMockTestServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestServiceClient

NewMockTestServiceClient creates a new instance of MockTestServiceClient. 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 (*MockTestServiceClient) BidiStream

BidiStream provides a mock function with given fields: ctx, opts

func (*MockTestServiceClient) ClientStream

ClientStream provides a mock function with given fields: ctx, opts

func (*MockTestServiceClient) EXPECT

func (*MockTestServiceClient) ServerStream

ServerStream provides a mock function with given fields: ctx, in, opts

func (*MockTestServiceClient) ServerStreamThatSleeps added in v0.1.3

ServerStreamThatSleeps provides a mock function with given fields: ctx, in, opts

func (*MockTestServiceClient) Unary

Unary provides a mock function with given fields: ctx, in, opts

type MockTestServiceClient_BidiStream_Call

type MockTestServiceClient_BidiStream_Call struct {
	*mock.Call
}

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

func (*MockTestServiceClient_BidiStream_Call) Return

func (*MockTestServiceClient_BidiStream_Call) Run

type MockTestServiceClient_ClientStream_Call

type MockTestServiceClient_ClientStream_Call struct {
	*mock.Call
}

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

func (*MockTestServiceClient_ClientStream_Call) Run

type MockTestServiceClient_Expecter

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

func (*MockTestServiceClient_Expecter) BidiStream

func (_e *MockTestServiceClient_Expecter) BidiStream(ctx interface{}, opts ...interface{}) *MockTestServiceClient_BidiStream_Call

BidiStream is a helper method to define mock.On call

  • ctx context.Context
  • opts ...grpc.CallOption

func (*MockTestServiceClient_Expecter) ClientStream

func (_e *MockTestServiceClient_Expecter) ClientStream(ctx interface{}, opts ...interface{}) *MockTestServiceClient_ClientStream_Call

ClientStream is a helper method to define mock.On call

  • ctx context.Context
  • opts ...grpc.CallOption

func (*MockTestServiceClient_Expecter) ServerStream

func (_e *MockTestServiceClient_Expecter) ServerStream(ctx interface{}, in interface{}, opts ...interface{}) *MockTestServiceClient_ServerStream_Call

ServerStream is a helper method to define mock.On call

  • ctx context.Context
  • in *testproto.Msg
  • opts ...grpc.CallOption

func (*MockTestServiceClient_Expecter) ServerStreamThatSleeps added in v0.1.3

func (_e *MockTestServiceClient_Expecter) ServerStreamThatSleeps(ctx interface{}, in interface{}, opts ...interface{}) *MockTestServiceClient_ServerStreamThatSleeps_Call

ServerStreamThatSleeps is a helper method to define mock.On call

  • ctx context.Context
  • in *testproto.Msg
  • opts ...grpc.CallOption

func (*MockTestServiceClient_Expecter) Unary

func (_e *MockTestServiceClient_Expecter) Unary(ctx interface{}, in interface{}, opts ...interface{}) *MockTestServiceClient_Unary_Call

Unary is a helper method to define mock.On call

  • ctx context.Context
  • in *testproto.Msg
  • opts ...grpc.CallOption

type MockTestServiceClient_ServerStreamThatSleeps_Call added in v0.1.3

type MockTestServiceClient_ServerStreamThatSleeps_Call struct {
	*mock.Call
}

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

func (*MockTestServiceClient_ServerStreamThatSleeps_Call) Return added in v0.1.3

func (*MockTestServiceClient_ServerStreamThatSleeps_Call) Run added in v0.1.3

type MockTestServiceClient_ServerStream_Call

type MockTestServiceClient_ServerStream_Call struct {
	*mock.Call
}

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

func (*MockTestServiceClient_ServerStream_Call) Run

type MockTestServiceClient_Unary_Call

type MockTestServiceClient_Unary_Call struct {
	*mock.Call
}

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

func (*MockTestServiceClient_Unary_Call) Return

func (*MockTestServiceClient_Unary_Call) Run

func (*MockTestServiceClient_Unary_Call) RunAndReturn

type MockTestServiceServer

type MockTestServiceServer struct {
	mock.Mock
}

MockTestServiceServer is an autogenerated mock type for the TestServiceServer type

func NewMockTestServiceServer

func NewMockTestServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestServiceServer

NewMockTestServiceServer creates a new instance of MockTestServiceServer. 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 (*MockTestServiceServer) BidiStream

BidiStream provides a mock function with given fields: _a0

func (*MockTestServiceServer) ClientStream

ClientStream provides a mock function with given fields: _a0

func (*MockTestServiceServer) EXPECT

func (*MockTestServiceServer) ServerStream

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

func (*MockTestServiceServer) ServerStreamThatSleeps added in v0.1.3

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

func (*MockTestServiceServer) Unary

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

type MockTestServiceServer_BidiStream_Call

type MockTestServiceServer_BidiStream_Call struct {
	*mock.Call
}

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

func (*MockTestServiceServer_BidiStream_Call) Return

func (*MockTestServiceServer_BidiStream_Call) Run

func (*MockTestServiceServer_BidiStream_Call) RunAndReturn

type MockTestServiceServer_ClientStream_Call

type MockTestServiceServer_ClientStream_Call struct {
	*mock.Call
}

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

func (*MockTestServiceServer_ClientStream_Call) Return

func (*MockTestServiceServer_ClientStream_Call) Run

func (*MockTestServiceServer_ClientStream_Call) RunAndReturn

type MockTestServiceServer_Expecter

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

func (*MockTestServiceServer_Expecter) BidiStream

BidiStream is a helper method to define mock.On call

  • _a0 testproto.TestService_BidiStreamServer

func (*MockTestServiceServer_Expecter) ClientStream

ClientStream is a helper method to define mock.On call

  • _a0 testproto.TestService_ClientStreamServer

func (*MockTestServiceServer_Expecter) ServerStream

func (_e *MockTestServiceServer_Expecter) ServerStream(_a0 interface{}, _a1 interface{}) *MockTestServiceServer_ServerStream_Call

ServerStream is a helper method to define mock.On call

  • _a0 *testproto.Msg
  • _a1 testproto.TestService_ServerStreamServer

func (*MockTestServiceServer_Expecter) ServerStreamThatSleeps added in v0.1.3

func (_e *MockTestServiceServer_Expecter) ServerStreamThatSleeps(_a0 interface{}, _a1 interface{}) *MockTestServiceServer_ServerStreamThatSleeps_Call

ServerStreamThatSleeps is a helper method to define mock.On call

  • _a0 *testproto.Msg
  • _a1 testproto.TestService_ServerStreamThatSleepsServer

func (*MockTestServiceServer_Expecter) Unary

func (_e *MockTestServiceServer_Expecter) Unary(_a0 interface{}, _a1 interface{}) *MockTestServiceServer_Unary_Call

Unary is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *testproto.Msg

type MockTestServiceServer_ServerStreamThatSleeps_Call added in v0.1.3

type MockTestServiceServer_ServerStreamThatSleeps_Call struct {
	*mock.Call
}

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

func (*MockTestServiceServer_ServerStreamThatSleeps_Call) Return added in v0.1.3

func (*MockTestServiceServer_ServerStreamThatSleeps_Call) Run added in v0.1.3

func (*MockTestServiceServer_ServerStreamThatSleeps_Call) RunAndReturn added in v0.1.3

type MockTestServiceServer_ServerStream_Call

type MockTestServiceServer_ServerStream_Call struct {
	*mock.Call
}

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

func (*MockTestServiceServer_ServerStream_Call) Return

func (*MockTestServiceServer_ServerStream_Call) Run

type MockTestServiceServer_Unary_Call

type MockTestServiceServer_Unary_Call struct {
	*mock.Call
}

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

func (*MockTestServiceServer_Unary_Call) Return

func (*MockTestServiceServer_Unary_Call) Run

func (*MockTestServiceServer_Unary_Call) RunAndReturn

type MockTestService_BidiStreamClient

type MockTestService_BidiStreamClient struct {
	mock.Mock
}

MockTestService_BidiStreamClient is an autogenerated mock type for the TestService_BidiStreamClient type

func NewMockTestService_BidiStreamClient

func NewMockTestService_BidiStreamClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_BidiStreamClient

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

func (_m *MockTestService_BidiStreamClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*MockTestService_BidiStreamClient) Context

Context provides a mock function with given fields:

func (*MockTestService_BidiStreamClient) EXPECT

func (*MockTestService_BidiStreamClient) Header

Header provides a mock function with given fields:

func (*MockTestService_BidiStreamClient) Recv

Recv provides a mock function with given fields:

func (*MockTestService_BidiStreamClient) RecvMsg

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_BidiStreamClient) Send

Send provides a mock function with given fields: _a0

func (*MockTestService_BidiStreamClient) SendMsg

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_BidiStreamClient) Trailer

Trailer provides a mock function with given fields:

type MockTestService_BidiStreamClient_CloseSend_Call

type MockTestService_BidiStreamClient_CloseSend_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_CloseSend_Call) Return

func (*MockTestService_BidiStreamClient_CloseSend_Call) Run

func (*MockTestService_BidiStreamClient_CloseSend_Call) RunAndReturn

type MockTestService_BidiStreamClient_Context_Call

type MockTestService_BidiStreamClient_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_Context_Call) Return

func (*MockTestService_BidiStreamClient_Context_Call) Run

func (*MockTestService_BidiStreamClient_Context_Call) RunAndReturn

type MockTestService_BidiStreamClient_Expecter

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

func (*MockTestService_BidiStreamClient_Expecter) CloseSend

CloseSend is a helper method to define mock.On call

func (*MockTestService_BidiStreamClient_Expecter) Context

Context is a helper method to define mock.On call

func (*MockTestService_BidiStreamClient_Expecter) Header

Header is a helper method to define mock.On call

func (*MockTestService_BidiStreamClient_Expecter) Recv

Recv is a helper method to define mock.On call

func (*MockTestService_BidiStreamClient_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_BidiStreamClient_Expecter) Send

Send is a helper method to define mock.On call

  • _a0 *testproto.Msg

func (*MockTestService_BidiStreamClient_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_BidiStreamClient_Expecter) Trailer

Trailer is a helper method to define mock.On call

type MockTestService_BidiStreamClient_Header_Call

type MockTestService_BidiStreamClient_Header_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_Header_Call) Return

func (*MockTestService_BidiStreamClient_Header_Call) Run

func (*MockTestService_BidiStreamClient_Header_Call) RunAndReturn

type MockTestService_BidiStreamClient_RecvMsg_Call

type MockTestService_BidiStreamClient_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_RecvMsg_Call) Return

func (*MockTestService_BidiStreamClient_RecvMsg_Call) Run

func (*MockTestService_BidiStreamClient_RecvMsg_Call) RunAndReturn

type MockTestService_BidiStreamClient_Recv_Call

type MockTestService_BidiStreamClient_Recv_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_Recv_Call) Return

func (*MockTestService_BidiStreamClient_Recv_Call) Run

func (*MockTestService_BidiStreamClient_Recv_Call) RunAndReturn

type MockTestService_BidiStreamClient_SendMsg_Call

type MockTestService_BidiStreamClient_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_SendMsg_Call) Return

func (*MockTestService_BidiStreamClient_SendMsg_Call) Run

func (*MockTestService_BidiStreamClient_SendMsg_Call) RunAndReturn

type MockTestService_BidiStreamClient_Send_Call

type MockTestService_BidiStreamClient_Send_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_Send_Call) Return

func (*MockTestService_BidiStreamClient_Send_Call) Run

func (*MockTestService_BidiStreamClient_Send_Call) RunAndReturn

type MockTestService_BidiStreamClient_Trailer_Call

type MockTestService_BidiStreamClient_Trailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamClient_Trailer_Call) Return

func (*MockTestService_BidiStreamClient_Trailer_Call) Run

func (*MockTestService_BidiStreamClient_Trailer_Call) RunAndReturn

type MockTestService_BidiStreamServer

type MockTestService_BidiStreamServer struct {
	mock.Mock
}

MockTestService_BidiStreamServer is an autogenerated mock type for the TestService_BidiStreamServer type

func NewMockTestService_BidiStreamServer

func NewMockTestService_BidiStreamServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_BidiStreamServer

NewMockTestService_BidiStreamServer creates a new instance of MockTestService_BidiStreamServer. 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 (*MockTestService_BidiStreamServer) Context

Context provides a mock function with given fields:

func (*MockTestService_BidiStreamServer) EXPECT

func (*MockTestService_BidiStreamServer) Recv

Recv provides a mock function with given fields:

func (*MockTestService_BidiStreamServer) RecvMsg

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_BidiStreamServer) Send

Send provides a mock function with given fields: _a0

func (*MockTestService_BidiStreamServer) SendHeader

func (_m *MockTestService_BidiStreamServer) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*MockTestService_BidiStreamServer) SendMsg

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_BidiStreamServer) SetHeader

SetHeader provides a mock function with given fields: _a0

func (*MockTestService_BidiStreamServer) SetTrailer

func (_m *MockTestService_BidiStreamServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type MockTestService_BidiStreamServer_Context_Call

type MockTestService_BidiStreamServer_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_Context_Call) Return

func (*MockTestService_BidiStreamServer_Context_Call) Run

func (*MockTestService_BidiStreamServer_Context_Call) RunAndReturn

type MockTestService_BidiStreamServer_Expecter

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

func (*MockTestService_BidiStreamServer_Expecter) Context

Context is a helper method to define mock.On call

func (*MockTestService_BidiStreamServer_Expecter) Recv

Recv is a helper method to define mock.On call

func (*MockTestService_BidiStreamServer_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_BidiStreamServer_Expecter) Send

Send is a helper method to define mock.On call

  • _a0 *testproto.Msg

func (*MockTestService_BidiStreamServer_Expecter) SendHeader

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_BidiStreamServer_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_BidiStreamServer_Expecter) SetHeader

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_BidiStreamServer_Expecter) SetTrailer

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockTestService_BidiStreamServer_RecvMsg_Call

type MockTestService_BidiStreamServer_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_RecvMsg_Call) Return

func (*MockTestService_BidiStreamServer_RecvMsg_Call) Run

func (*MockTestService_BidiStreamServer_RecvMsg_Call) RunAndReturn

type MockTestService_BidiStreamServer_Recv_Call

type MockTestService_BidiStreamServer_Recv_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_Recv_Call) Return

func (*MockTestService_BidiStreamServer_Recv_Call) Run

func (*MockTestService_BidiStreamServer_Recv_Call) RunAndReturn

type MockTestService_BidiStreamServer_SendHeader_Call

type MockTestService_BidiStreamServer_SendHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_SendHeader_Call) Return

func (*MockTestService_BidiStreamServer_SendHeader_Call) Run

func (*MockTestService_BidiStreamServer_SendHeader_Call) RunAndReturn

type MockTestService_BidiStreamServer_SendMsg_Call

type MockTestService_BidiStreamServer_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_SendMsg_Call) Return

func (*MockTestService_BidiStreamServer_SendMsg_Call) Run

func (*MockTestService_BidiStreamServer_SendMsg_Call) RunAndReturn

type MockTestService_BidiStreamServer_Send_Call

type MockTestService_BidiStreamServer_Send_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_Send_Call) Return

func (*MockTestService_BidiStreamServer_Send_Call) Run

func (*MockTestService_BidiStreamServer_Send_Call) RunAndReturn

type MockTestService_BidiStreamServer_SetHeader_Call

type MockTestService_BidiStreamServer_SetHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_SetHeader_Call) Return

func (*MockTestService_BidiStreamServer_SetHeader_Call) Run

func (*MockTestService_BidiStreamServer_SetHeader_Call) RunAndReturn

type MockTestService_BidiStreamServer_SetTrailer_Call

type MockTestService_BidiStreamServer_SetTrailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_BidiStreamServer_SetTrailer_Call) Return

func (*MockTestService_BidiStreamServer_SetTrailer_Call) Run

func (*MockTestService_BidiStreamServer_SetTrailer_Call) RunAndReturn

type MockTestService_ClientStreamClient

type MockTestService_ClientStreamClient struct {
	mock.Mock
}

MockTestService_ClientStreamClient is an autogenerated mock type for the TestService_ClientStreamClient type

func NewMockTestService_ClientStreamClient

func NewMockTestService_ClientStreamClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_ClientStreamClient

NewMockTestService_ClientStreamClient creates a new instance of MockTestService_ClientStreamClient. 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 (*MockTestService_ClientStreamClient) CloseAndRecv

func (_m *MockTestService_ClientStreamClient) CloseAndRecv() (*testproto.Msg, error)

CloseAndRecv provides a mock function with given fields:

func (*MockTestService_ClientStreamClient) CloseSend

func (_m *MockTestService_ClientStreamClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*MockTestService_ClientStreamClient) Context

Context provides a mock function with given fields:

func (*MockTestService_ClientStreamClient) EXPECT

func (*MockTestService_ClientStreamClient) Header

Header provides a mock function with given fields:

func (*MockTestService_ClientStreamClient) RecvMsg

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_ClientStreamClient) Send

Send provides a mock function with given fields: _a0

func (*MockTestService_ClientStreamClient) SendMsg

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_ClientStreamClient) Trailer

Trailer provides a mock function with given fields:

type MockTestService_ClientStreamClient_CloseAndRecv_Call

type MockTestService_ClientStreamClient_CloseAndRecv_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_CloseAndRecv_Call) Return

func (*MockTestService_ClientStreamClient_CloseAndRecv_Call) Run

func (*MockTestService_ClientStreamClient_CloseAndRecv_Call) RunAndReturn

type MockTestService_ClientStreamClient_CloseSend_Call

type MockTestService_ClientStreamClient_CloseSend_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_CloseSend_Call) Return

func (*MockTestService_ClientStreamClient_CloseSend_Call) Run

func (*MockTestService_ClientStreamClient_CloseSend_Call) RunAndReturn

type MockTestService_ClientStreamClient_Context_Call

type MockTestService_ClientStreamClient_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_Context_Call) Return

func (*MockTestService_ClientStreamClient_Context_Call) Run

func (*MockTestService_ClientStreamClient_Context_Call) RunAndReturn

type MockTestService_ClientStreamClient_Expecter

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

func (*MockTestService_ClientStreamClient_Expecter) CloseAndRecv

CloseAndRecv is a helper method to define mock.On call

func (*MockTestService_ClientStreamClient_Expecter) CloseSend

CloseSend is a helper method to define mock.On call

func (*MockTestService_ClientStreamClient_Expecter) Context

Context is a helper method to define mock.On call

func (*MockTestService_ClientStreamClient_Expecter) Header

Header is a helper method to define mock.On call

func (*MockTestService_ClientStreamClient_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ClientStreamClient_Expecter) Send

Send is a helper method to define mock.On call

  • _a0 *testproto.Msg

func (*MockTestService_ClientStreamClient_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ClientStreamClient_Expecter) Trailer

Trailer is a helper method to define mock.On call

type MockTestService_ClientStreamClient_Header_Call

type MockTestService_ClientStreamClient_Header_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_Header_Call) Return

func (*MockTestService_ClientStreamClient_Header_Call) Run

func (*MockTestService_ClientStreamClient_Header_Call) RunAndReturn

type MockTestService_ClientStreamClient_RecvMsg_Call

type MockTestService_ClientStreamClient_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_RecvMsg_Call) Return

func (*MockTestService_ClientStreamClient_RecvMsg_Call) Run

func (*MockTestService_ClientStreamClient_RecvMsg_Call) RunAndReturn

type MockTestService_ClientStreamClient_SendMsg_Call

type MockTestService_ClientStreamClient_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_SendMsg_Call) Return

func (*MockTestService_ClientStreamClient_SendMsg_Call) Run

func (*MockTestService_ClientStreamClient_SendMsg_Call) RunAndReturn

type MockTestService_ClientStreamClient_Send_Call

type MockTestService_ClientStreamClient_Send_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_Send_Call) Return

func (*MockTestService_ClientStreamClient_Send_Call) Run

func (*MockTestService_ClientStreamClient_Send_Call) RunAndReturn

type MockTestService_ClientStreamClient_Trailer_Call

type MockTestService_ClientStreamClient_Trailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamClient_Trailer_Call) Return

func (*MockTestService_ClientStreamClient_Trailer_Call) Run

func (*MockTestService_ClientStreamClient_Trailer_Call) RunAndReturn

type MockTestService_ClientStreamServer

type MockTestService_ClientStreamServer struct {
	mock.Mock
}

MockTestService_ClientStreamServer is an autogenerated mock type for the TestService_ClientStreamServer type

func NewMockTestService_ClientStreamServer

func NewMockTestService_ClientStreamServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_ClientStreamServer

NewMockTestService_ClientStreamServer creates a new instance of MockTestService_ClientStreamServer. 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 (*MockTestService_ClientStreamServer) Context

Context provides a mock function with given fields:

func (*MockTestService_ClientStreamServer) EXPECT

func (*MockTestService_ClientStreamServer) Recv

Recv provides a mock function with given fields:

func (*MockTestService_ClientStreamServer) RecvMsg

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_ClientStreamServer) SendAndClose

func (_m *MockTestService_ClientStreamServer) SendAndClose(_a0 *testproto.Msg) error

SendAndClose provides a mock function with given fields: _a0

func (*MockTestService_ClientStreamServer) SendHeader

SendHeader provides a mock function with given fields: _a0

func (*MockTestService_ClientStreamServer) SendMsg

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_ClientStreamServer) SetHeader

SetHeader provides a mock function with given fields: _a0

func (*MockTestService_ClientStreamServer) SetTrailer

func (_m *MockTestService_ClientStreamServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type MockTestService_ClientStreamServer_Context_Call

type MockTestService_ClientStreamServer_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_Context_Call) Return

func (*MockTestService_ClientStreamServer_Context_Call) Run

func (*MockTestService_ClientStreamServer_Context_Call) RunAndReturn

type MockTestService_ClientStreamServer_Expecter

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

func (*MockTestService_ClientStreamServer_Expecter) Context

Context is a helper method to define mock.On call

func (*MockTestService_ClientStreamServer_Expecter) Recv

Recv is a helper method to define mock.On call

func (*MockTestService_ClientStreamServer_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ClientStreamServer_Expecter) SendAndClose

SendAndClose is a helper method to define mock.On call

  • _a0 *testproto.Msg

func (*MockTestService_ClientStreamServer_Expecter) SendHeader

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_ClientStreamServer_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ClientStreamServer_Expecter) SetHeader

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_ClientStreamServer_Expecter) SetTrailer

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockTestService_ClientStreamServer_RecvMsg_Call

type MockTestService_ClientStreamServer_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_RecvMsg_Call) Return

func (*MockTestService_ClientStreamServer_RecvMsg_Call) Run

func (*MockTestService_ClientStreamServer_RecvMsg_Call) RunAndReturn

type MockTestService_ClientStreamServer_Recv_Call

type MockTestService_ClientStreamServer_Recv_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_Recv_Call) Return

func (*MockTestService_ClientStreamServer_Recv_Call) Run

func (*MockTestService_ClientStreamServer_Recv_Call) RunAndReturn

type MockTestService_ClientStreamServer_SendAndClose_Call

type MockTestService_ClientStreamServer_SendAndClose_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_SendAndClose_Call) Return

func (*MockTestService_ClientStreamServer_SendAndClose_Call) Run

func (*MockTestService_ClientStreamServer_SendAndClose_Call) RunAndReturn

type MockTestService_ClientStreamServer_SendHeader_Call

type MockTestService_ClientStreamServer_SendHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_SendHeader_Call) Return

func (*MockTestService_ClientStreamServer_SendHeader_Call) Run

func (*MockTestService_ClientStreamServer_SendHeader_Call) RunAndReturn

type MockTestService_ClientStreamServer_SendMsg_Call

type MockTestService_ClientStreamServer_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_SendMsg_Call) Return

func (*MockTestService_ClientStreamServer_SendMsg_Call) Run

func (*MockTestService_ClientStreamServer_SendMsg_Call) RunAndReturn

type MockTestService_ClientStreamServer_SetHeader_Call

type MockTestService_ClientStreamServer_SetHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_SetHeader_Call) Return

func (*MockTestService_ClientStreamServer_SetHeader_Call) Run

func (*MockTestService_ClientStreamServer_SetHeader_Call) RunAndReturn

type MockTestService_ClientStreamServer_SetTrailer_Call

type MockTestService_ClientStreamServer_SetTrailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_ClientStreamServer_SetTrailer_Call) Return

func (*MockTestService_ClientStreamServer_SetTrailer_Call) Run

func (*MockTestService_ClientStreamServer_SetTrailer_Call) RunAndReturn

type MockTestService_ServerStreamClient

type MockTestService_ServerStreamClient struct {
	mock.Mock
}

MockTestService_ServerStreamClient is an autogenerated mock type for the TestService_ServerStreamClient type

func NewMockTestService_ServerStreamClient

func NewMockTestService_ServerStreamClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_ServerStreamClient

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

func (_m *MockTestService_ServerStreamClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*MockTestService_ServerStreamClient) Context

Context provides a mock function with given fields:

func (*MockTestService_ServerStreamClient) EXPECT

func (*MockTestService_ServerStreamClient) Header

Header provides a mock function with given fields:

func (*MockTestService_ServerStreamClient) Recv

Recv provides a mock function with given fields:

func (*MockTestService_ServerStreamClient) RecvMsg

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamClient) SendMsg

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamClient) Trailer

Trailer provides a mock function with given fields:

type MockTestService_ServerStreamClient_CloseSend_Call

type MockTestService_ServerStreamClient_CloseSend_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamClient_CloseSend_Call) Return

func (*MockTestService_ServerStreamClient_CloseSend_Call) Run

func (*MockTestService_ServerStreamClient_CloseSend_Call) RunAndReturn

type MockTestService_ServerStreamClient_Context_Call

type MockTestService_ServerStreamClient_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamClient_Context_Call) Return

func (*MockTestService_ServerStreamClient_Context_Call) Run

func (*MockTestService_ServerStreamClient_Context_Call) RunAndReturn

type MockTestService_ServerStreamClient_Expecter

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

func (*MockTestService_ServerStreamClient_Expecter) CloseSend

CloseSend is a helper method to define mock.On call

func (*MockTestService_ServerStreamClient_Expecter) Context

Context is a helper method to define mock.On call

func (*MockTestService_ServerStreamClient_Expecter) Header

Header is a helper method to define mock.On call

func (*MockTestService_ServerStreamClient_Expecter) Recv

Recv is a helper method to define mock.On call

func (*MockTestService_ServerStreamClient_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamClient_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamClient_Expecter) Trailer

Trailer is a helper method to define mock.On call

type MockTestService_ServerStreamClient_Header_Call

type MockTestService_ServerStreamClient_Header_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamClient_Header_Call) Return

func (*MockTestService_ServerStreamClient_Header_Call) Run

func (*MockTestService_ServerStreamClient_Header_Call) RunAndReturn

type MockTestService_ServerStreamClient_RecvMsg_Call

type MockTestService_ServerStreamClient_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamClient_RecvMsg_Call) Return

func (*MockTestService_ServerStreamClient_RecvMsg_Call) Run

func (*MockTestService_ServerStreamClient_RecvMsg_Call) RunAndReturn

type MockTestService_ServerStreamClient_Recv_Call

type MockTestService_ServerStreamClient_Recv_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamClient_Recv_Call) Return

func (*MockTestService_ServerStreamClient_Recv_Call) Run

func (*MockTestService_ServerStreamClient_Recv_Call) RunAndReturn

type MockTestService_ServerStreamClient_SendMsg_Call

type MockTestService_ServerStreamClient_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamClient_SendMsg_Call) Return

func (*MockTestService_ServerStreamClient_SendMsg_Call) Run

func (*MockTestService_ServerStreamClient_SendMsg_Call) RunAndReturn

type MockTestService_ServerStreamClient_Trailer_Call

type MockTestService_ServerStreamClient_Trailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamClient_Trailer_Call) Return

func (*MockTestService_ServerStreamClient_Trailer_Call) Run

func (*MockTestService_ServerStreamClient_Trailer_Call) RunAndReturn

type MockTestService_ServerStreamServer

type MockTestService_ServerStreamServer struct {
	mock.Mock
}

MockTestService_ServerStreamServer is an autogenerated mock type for the TestService_ServerStreamServer type

func NewMockTestService_ServerStreamServer

func NewMockTestService_ServerStreamServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_ServerStreamServer

NewMockTestService_ServerStreamServer creates a new instance of MockTestService_ServerStreamServer. 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 (*MockTestService_ServerStreamServer) Context

Context provides a mock function with given fields:

func (*MockTestService_ServerStreamServer) EXPECT

func (*MockTestService_ServerStreamServer) RecvMsg

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamServer) Send

Send provides a mock function with given fields: _a0

func (*MockTestService_ServerStreamServer) SendHeader

SendHeader provides a mock function with given fields: _a0

func (*MockTestService_ServerStreamServer) SendMsg

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamServer) SetHeader

SetHeader provides a mock function with given fields: _a0

func (*MockTestService_ServerStreamServer) SetTrailer

func (_m *MockTestService_ServerStreamServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type MockTestService_ServerStreamServer_Context_Call

type MockTestService_ServerStreamServer_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamServer_Context_Call) Return

func (*MockTestService_ServerStreamServer_Context_Call) Run

func (*MockTestService_ServerStreamServer_Context_Call) RunAndReturn

type MockTestService_ServerStreamServer_Expecter

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

func (*MockTestService_ServerStreamServer_Expecter) Context

Context is a helper method to define mock.On call

func (*MockTestService_ServerStreamServer_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamServer_Expecter) Send

Send is a helper method to define mock.On call

  • _a0 *testproto.Msg

func (*MockTestService_ServerStreamServer_Expecter) SendHeader

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_ServerStreamServer_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamServer_Expecter) SetHeader

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_ServerStreamServer_Expecter) SetTrailer

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockTestService_ServerStreamServer_RecvMsg_Call

type MockTestService_ServerStreamServer_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamServer_RecvMsg_Call) Return

func (*MockTestService_ServerStreamServer_RecvMsg_Call) Run

func (*MockTestService_ServerStreamServer_RecvMsg_Call) RunAndReturn

type MockTestService_ServerStreamServer_SendHeader_Call

type MockTestService_ServerStreamServer_SendHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamServer_SendHeader_Call) Return

func (*MockTestService_ServerStreamServer_SendHeader_Call) Run

func (*MockTestService_ServerStreamServer_SendHeader_Call) RunAndReturn

type MockTestService_ServerStreamServer_SendMsg_Call

type MockTestService_ServerStreamServer_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamServer_SendMsg_Call) Return

func (*MockTestService_ServerStreamServer_SendMsg_Call) Run

func (*MockTestService_ServerStreamServer_SendMsg_Call) RunAndReturn

type MockTestService_ServerStreamServer_Send_Call

type MockTestService_ServerStreamServer_Send_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamServer_Send_Call) Return

func (*MockTestService_ServerStreamServer_Send_Call) Run

func (*MockTestService_ServerStreamServer_Send_Call) RunAndReturn

type MockTestService_ServerStreamServer_SetHeader_Call

type MockTestService_ServerStreamServer_SetHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamServer_SetHeader_Call) Return

func (*MockTestService_ServerStreamServer_SetHeader_Call) Run

func (*MockTestService_ServerStreamServer_SetHeader_Call) RunAndReturn

type MockTestService_ServerStreamServer_SetTrailer_Call

type MockTestService_ServerStreamServer_SetTrailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamServer_SetTrailer_Call) Return

func (*MockTestService_ServerStreamServer_SetTrailer_Call) Run

func (*MockTestService_ServerStreamServer_SetTrailer_Call) RunAndReturn

type MockTestService_ServerStreamThatSleepsClient added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient struct {
	mock.Mock
}

MockTestService_ServerStreamThatSleepsClient is an autogenerated mock type for the TestService_ServerStreamThatSleepsClient type

func NewMockTestService_ServerStreamThatSleepsClient added in v0.1.3

func NewMockTestService_ServerStreamThatSleepsClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_ServerStreamThatSleepsClient

NewMockTestService_ServerStreamThatSleepsClient creates a new instance of MockTestService_ServerStreamThatSleepsClient. 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 (*MockTestService_ServerStreamThatSleepsClient) CloseSend added in v0.1.3

CloseSend provides a mock function with given fields:

func (*MockTestService_ServerStreamThatSleepsClient) Context added in v0.1.3

Context provides a mock function with given fields:

func (*MockTestService_ServerStreamThatSleepsClient) EXPECT added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient) Header added in v0.1.3

Header provides a mock function with given fields:

func (*MockTestService_ServerStreamThatSleepsClient) Recv added in v0.1.3

Recv provides a mock function with given fields:

func (*MockTestService_ServerStreamThatSleepsClient) RecvMsg added in v0.1.3

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamThatSleepsClient) SendMsg added in v0.1.3

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamThatSleepsClient) Trailer added in v0.1.3

Trailer provides a mock function with given fields:

type MockTestService_ServerStreamThatSleepsClient_CloseSend_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_CloseSend_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsClient_CloseSend_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_CloseSend_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_CloseSend_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Context_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsClient_Context_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Context_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Context_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Expecter added in v0.1.3

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

func (*MockTestService_ServerStreamThatSleepsClient_Expecter) CloseSend added in v0.1.3

CloseSend is a helper method to define mock.On call

func (*MockTestService_ServerStreamThatSleepsClient_Expecter) Context added in v0.1.3

Context is a helper method to define mock.On call

func (*MockTestService_ServerStreamThatSleepsClient_Expecter) Header added in v0.1.3

Header is a helper method to define mock.On call

func (*MockTestService_ServerStreamThatSleepsClient_Expecter) Recv added in v0.1.3

Recv is a helper method to define mock.On call

func (*MockTestService_ServerStreamThatSleepsClient_Expecter) RecvMsg added in v0.1.3

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamThatSleepsClient_Expecter) SendMsg added in v0.1.3

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamThatSleepsClient_Expecter) Trailer added in v0.1.3

Trailer is a helper method to define mock.On call

type MockTestService_ServerStreamThatSleepsClient_Header_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Header_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsClient_Header_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Header_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Header_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_RecvMsg_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsClient_RecvMsg_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_RecvMsg_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_RecvMsg_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Recv_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Recv_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsClient_Recv_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Recv_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Recv_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_SendMsg_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsClient_SendMsg_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_SendMsg_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_SendMsg_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Trailer_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsClient_Trailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsClient_Trailer_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Trailer_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsClient_Trailer_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer struct {
	mock.Mock
}

MockTestService_ServerStreamThatSleepsServer is an autogenerated mock type for the TestService_ServerStreamThatSleepsServer type

func NewMockTestService_ServerStreamThatSleepsServer added in v0.1.3

func NewMockTestService_ServerStreamThatSleepsServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTestService_ServerStreamThatSleepsServer

NewMockTestService_ServerStreamThatSleepsServer creates a new instance of MockTestService_ServerStreamThatSleepsServer. 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 (*MockTestService_ServerStreamThatSleepsServer) Context added in v0.1.3

Context provides a mock function with given fields:

func (*MockTestService_ServerStreamThatSleepsServer) EXPECT added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer) RecvMsg added in v0.1.3

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

RecvMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamThatSleepsServer) Send added in v0.1.3

Send provides a mock function with given fields: _a0

func (*MockTestService_ServerStreamThatSleepsServer) SendHeader added in v0.1.3

SendHeader provides a mock function with given fields: _a0

func (*MockTestService_ServerStreamThatSleepsServer) SendMsg added in v0.1.3

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

SendMsg provides a mock function with given fields: m

func (*MockTestService_ServerStreamThatSleepsServer) SetHeader added in v0.1.3

SetHeader provides a mock function with given fields: _a0

func (*MockTestService_ServerStreamThatSleepsServer) SetTrailer added in v0.1.3

SetTrailer provides a mock function with given fields: _a0

type MockTestService_ServerStreamThatSleepsServer_Context_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_Context_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsServer_Context_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_Context_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_Context_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_Expecter added in v0.1.3

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

func (*MockTestService_ServerStreamThatSleepsServer_Expecter) Context added in v0.1.3

Context is a helper method to define mock.On call

func (*MockTestService_ServerStreamThatSleepsServer_Expecter) RecvMsg added in v0.1.3

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamThatSleepsServer_Expecter) Send added in v0.1.3

Send is a helper method to define mock.On call

  • _a0 *testproto.Msg

func (*MockTestService_ServerStreamThatSleepsServer_Expecter) SendHeader added in v0.1.3

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_ServerStreamThatSleepsServer_Expecter) SendMsg added in v0.1.3

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockTestService_ServerStreamThatSleepsServer_Expecter) SetHeader added in v0.1.3

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockTestService_ServerStreamThatSleepsServer_Expecter) SetTrailer added in v0.1.3

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockTestService_ServerStreamThatSleepsServer_RecvMsg_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsServer_RecvMsg_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_RecvMsg_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_RecvMsg_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SendHeader_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SendHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsServer_SendHeader_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SendHeader_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SendHeader_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SendMsg_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsServer_SendMsg_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SendMsg_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SendMsg_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_Send_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_Send_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsServer_Send_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_Send_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_Send_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SetHeader_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SetHeader_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsServer_SetHeader_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SetHeader_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SetHeader_Call) RunAndReturn added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SetTrailer_Call added in v0.1.3

type MockTestService_ServerStreamThatSleepsServer_SetTrailer_Call struct {
	*mock.Call
}

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

func (*MockTestService_ServerStreamThatSleepsServer_SetTrailer_Call) Return added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SetTrailer_Call) Run added in v0.1.3

func (*MockTestService_ServerStreamThatSleepsServer_SetTrailer_Call) RunAndReturn added in v0.1.3

type MockUnsafeTestServiceServer

type MockUnsafeTestServiceServer struct {
	mock.Mock
}

MockUnsafeTestServiceServer is an autogenerated mock type for the UnsafeTestServiceServer type

func NewMockUnsafeTestServiceServer

func NewMockUnsafeTestServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUnsafeTestServiceServer

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

type MockUnsafeTestServiceServer_Expecter

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

type MockUnsafeTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call

type MockUnsafeTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call struct {
	*mock.Call
}

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

func (*MockUnsafeTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) Return

func (*MockUnsafeTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) Run

func (*MockUnsafeTestServiceServer_mustEmbedUnimplementedTestServiceServer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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