mocks

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBidiStreamingServer added in v0.1.8

type MockBidiStreamingServer[Req interface{}, Res interface{}] struct {
	mock.Mock
}

MockBidiStreamingServer is an autogenerated mock type for the BidiStreamingServer type

func NewMockBidiStreamingServer added in v0.1.8

func NewMockBidiStreamingServer[Req interface{}, Res interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBidiStreamingServer[Req, Res]

NewMockBidiStreamingServer creates a new instance of MockBidiStreamingServer. 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 (*MockBidiStreamingServer[Req, Res]) Context added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) Context() context.Context

Context provides a mock function with given fields:

func (*MockBidiStreamingServer[Req, Res]) EXPECT added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) EXPECT() *MockBidiStreamingServer_Expecter[Req, Res]

func (*MockBidiStreamingServer[Req, Res]) Recv added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) Recv() (*Req, error)

Recv provides a mock function with given fields:

func (*MockBidiStreamingServer[Req, Res]) RecvMsg added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*MockBidiStreamingServer[Req, Res]) Send added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) Send(_a0 *Res) error

Send provides a mock function with given fields: _a0

func (*MockBidiStreamingServer[Req, Res]) SendHeader added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*MockBidiStreamingServer[Req, Res]) SendMsg added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*MockBidiStreamingServer[Req, Res]) SetHeader added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) SetHeader(_a0 metadata.MD) error

SetHeader provides a mock function with given fields: _a0

func (*MockBidiStreamingServer[Req, Res]) SetTrailer added in v0.1.8

func (_m *MockBidiStreamingServer[Req, Res]) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type MockBidiStreamingServer_Context_Call added in v0.1.8

type MockBidiStreamingServer_Context_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_Context_Call[Req, Res]) Return added in v0.1.8

func (*MockBidiStreamingServer_Context_Call[Req, Res]) Run added in v0.1.8

func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) Run(run func()) *MockBidiStreamingServer_Context_Call[Req, Res]

func (*MockBidiStreamingServer_Context_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_Context_Call[Req, Res]) RunAndReturn(run func() context.Context) *MockBidiStreamingServer_Context_Call[Req, Res]

type MockBidiStreamingServer_Expecter added in v0.1.8

type MockBidiStreamingServer_Expecter[Req interface{}, Res interface{}] struct {
	// contains filtered or unexported fields
}

func (*MockBidiStreamingServer_Expecter[Req, Res]) Context added in v0.1.8

Context is a helper method to define mock.On call

func (*MockBidiStreamingServer_Expecter[Req, Res]) Recv added in v0.1.8

Recv is a helper method to define mock.On call

func (*MockBidiStreamingServer_Expecter[Req, Res]) RecvMsg added in v0.1.8

func (_e *MockBidiStreamingServer_Expecter[Req, Res]) RecvMsg(m interface{}) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockBidiStreamingServer_Expecter[Req, Res]) Send added in v0.1.8

func (_e *MockBidiStreamingServer_Expecter[Req, Res]) Send(_a0 interface{}) *MockBidiStreamingServer_Send_Call[Req, Res]

Send is a helper method to define mock.On call

  • _a0 *Res

func (*MockBidiStreamingServer_Expecter[Req, Res]) SendHeader added in v0.1.8

func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SendHeader(_a0 interface{}) *MockBidiStreamingServer_SendHeader_Call[Req, Res]

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockBidiStreamingServer_Expecter[Req, Res]) SendMsg added in v0.1.8

func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SendMsg(m interface{}) *MockBidiStreamingServer_SendMsg_Call[Req, Res]

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockBidiStreamingServer_Expecter[Req, Res]) SetHeader added in v0.1.8

func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SetHeader(_a0 interface{}) *MockBidiStreamingServer_SetHeader_Call[Req, Res]

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockBidiStreamingServer_Expecter[Req, Res]) SetTrailer added in v0.1.8

func (_e *MockBidiStreamingServer_Expecter[Req, Res]) SetTrailer(_a0 interface{}) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockBidiStreamingServer_RecvMsg_Call added in v0.1.8

type MockBidiStreamingServer_RecvMsg_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Return added in v0.1.8

func (*MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Run added in v0.1.8

func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) Run(run func(m interface{})) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]

func (*MockBidiStreamingServer_RecvMsg_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_RecvMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockBidiStreamingServer_RecvMsg_Call[Req, Res]

type MockBidiStreamingServer_Recv_Call added in v0.1.8

type MockBidiStreamingServer_Recv_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_Recv_Call[Req, Res]) Return added in v0.1.8

func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) Return(_a0 *Req, _a1 error) *MockBidiStreamingServer_Recv_Call[Req, Res]

func (*MockBidiStreamingServer_Recv_Call[Req, Res]) Run added in v0.1.8

func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) Run(run func()) *MockBidiStreamingServer_Recv_Call[Req, Res]

func (*MockBidiStreamingServer_Recv_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_Recv_Call[Req, Res]) RunAndReturn(run func() (*Req, error)) *MockBidiStreamingServer_Recv_Call[Req, Res]

type MockBidiStreamingServer_SendHeader_Call added in v0.1.8

type MockBidiStreamingServer_SendHeader_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_SendHeader_Call[Req, Res]) Return added in v0.1.8

func (*MockBidiStreamingServer_SendHeader_Call[Req, Res]) Run added in v0.1.8

func (*MockBidiStreamingServer_SendHeader_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_SendHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockBidiStreamingServer_SendHeader_Call[Req, Res]

type MockBidiStreamingServer_SendMsg_Call added in v0.1.8

type MockBidiStreamingServer_SendMsg_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_SendMsg_Call[Req, Res]) Return added in v0.1.8

func (*MockBidiStreamingServer_SendMsg_Call[Req, Res]) Run added in v0.1.8

func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) Run(run func(m interface{})) *MockBidiStreamingServer_SendMsg_Call[Req, Res]

func (*MockBidiStreamingServer_SendMsg_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_SendMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockBidiStreamingServer_SendMsg_Call[Req, Res]

type MockBidiStreamingServer_Send_Call added in v0.1.8

type MockBidiStreamingServer_Send_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_Send_Call[Req, Res]) Return added in v0.1.8

func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) Return(_a0 error) *MockBidiStreamingServer_Send_Call[Req, Res]

func (*MockBidiStreamingServer_Send_Call[Req, Res]) Run added in v0.1.8

func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) Run(run func(_a0 *Res)) *MockBidiStreamingServer_Send_Call[Req, Res]

func (*MockBidiStreamingServer_Send_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_Send_Call[Req, Res]) RunAndReturn(run func(*Res) error) *MockBidiStreamingServer_Send_Call[Req, Res]

type MockBidiStreamingServer_SetHeader_Call added in v0.1.8

type MockBidiStreamingServer_SetHeader_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_SetHeader_Call[Req, Res]) Return added in v0.1.8

func (*MockBidiStreamingServer_SetHeader_Call[Req, Res]) Run added in v0.1.8

func (*MockBidiStreamingServer_SetHeader_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_SetHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockBidiStreamingServer_SetHeader_Call[Req, Res]

type MockBidiStreamingServer_SetTrailer_Call added in v0.1.8

type MockBidiStreamingServer_SetTrailer_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

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

func (*MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Return added in v0.1.8

func (*MockBidiStreamingServer_SetTrailer_Call[Req, Res]) Run added in v0.1.8

func (*MockBidiStreamingServer_SetTrailer_Call[Req, Res]) RunAndReturn added in v0.1.8

func (_c *MockBidiStreamingServer_SetTrailer_Call[Req, Res]) RunAndReturn(run func(metadata.MD)) *MockBidiStreamingServer_SetTrailer_Call[Req, Res]

type MockStreamClientInterceptor

type MockStreamClientInterceptor struct {
	mock.Mock
}

MockStreamClientInterceptor is an autogenerated mock type for the StreamClientInterceptor type

func NewMockStreamClientInterceptor

func NewMockStreamClientInterceptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStreamClientInterceptor

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

func (*MockStreamClientInterceptor) Execute

func (_m *MockStreamClientInterceptor) Execute(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)

Execute provides a mock function with given fields: ctx, desc, cc, method, streamer, opts

type MockStreamClientInterceptor_Execute_Call

type MockStreamClientInterceptor_Execute_Call struct {
	*mock.Call
}

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

func (*MockStreamClientInterceptor_Execute_Call) Return

func (*MockStreamClientInterceptor_Execute_Call) Run

type MockStreamClientInterceptor_Expecter

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

func (*MockStreamClientInterceptor_Expecter) Execute

func (_e *MockStreamClientInterceptor_Expecter) Execute(ctx interface{}, desc interface{}, cc interface{}, method interface{}, streamer interface{}, opts ...interface{}) *MockStreamClientInterceptor_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • desc *grpc.StreamDesc
  • cc *grpc.ClientConn
  • method string
  • streamer grpc.Streamer
  • opts ...grpc.CallOption

type MockStreamServerInterceptor

type MockStreamServerInterceptor struct {
	mock.Mock
}

MockStreamServerInterceptor is an autogenerated mock type for the StreamServerInterceptor type

func NewMockStreamServerInterceptor

func NewMockStreamServerInterceptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStreamServerInterceptor

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

func (*MockStreamServerInterceptor) Execute

func (_m *MockStreamServerInterceptor) Execute(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

Execute provides a mock function with given fields: srv, ss, info, handler

type MockStreamServerInterceptor_Execute_Call

type MockStreamServerInterceptor_Execute_Call struct {
	*mock.Call
}

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

func (*MockStreamServerInterceptor_Execute_Call) Return

func (*MockStreamServerInterceptor_Execute_Call) Run

func (*MockStreamServerInterceptor_Execute_Call) RunAndReturn

type MockStreamServerInterceptor_Expecter

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

func (*MockStreamServerInterceptor_Expecter) Execute

func (_e *MockStreamServerInterceptor_Expecter) Execute(srv interface{}, ss interface{}, info interface{}, handler interface{}) *MockStreamServerInterceptor_Execute_Call

Execute is a helper method to define mock.On call

  • srv interface{}
  • ss grpc.ServerStream
  • info *grpc.StreamServerInfo
  • handler grpc.StreamHandler

type MockUnaryClientInterceptor

type MockUnaryClientInterceptor struct {
	mock.Mock
}

MockUnaryClientInterceptor is an autogenerated mock type for the UnaryClientInterceptor type

func NewMockUnaryClientInterceptor

func NewMockUnaryClientInterceptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUnaryClientInterceptor

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

func (*MockUnaryClientInterceptor) Execute

func (_m *MockUnaryClientInterceptor) Execute(ctx context.Context, method string, req interface{}, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error

Execute provides a mock function with given fields: ctx, method, req, reply, cc, invoker, opts

type MockUnaryClientInterceptor_Execute_Call

type MockUnaryClientInterceptor_Execute_Call struct {
	*mock.Call
}

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

func (*MockUnaryClientInterceptor_Execute_Call) Return

func (*MockUnaryClientInterceptor_Execute_Call) Run

func (_c *MockUnaryClientInterceptor_Execute_Call) Run(run func(ctx context.Context, method string, req interface{}, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption)) *MockUnaryClientInterceptor_Execute_Call

func (*MockUnaryClientInterceptor_Execute_Call) RunAndReturn

type MockUnaryClientInterceptor_Expecter

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

func (*MockUnaryClientInterceptor_Expecter) Execute

func (_e *MockUnaryClientInterceptor_Expecter) Execute(ctx interface{}, method interface{}, req interface{}, reply interface{}, cc interface{}, invoker interface{}, opts ...interface{}) *MockUnaryClientInterceptor_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • method string
  • req interface{}
  • reply interface{}
  • cc *grpc.ClientConn
  • invoker grpc.UnaryInvoker
  • opts ...grpc.CallOption

type MockUnaryServerInterceptor

type MockUnaryServerInterceptor struct {
	mock.Mock
}

MockUnaryServerInterceptor is an autogenerated mock type for the UnaryServerInterceptor type

func NewMockUnaryServerInterceptor

func NewMockUnaryServerInterceptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUnaryServerInterceptor

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

func (*MockUnaryServerInterceptor) Execute

func (_m *MockUnaryServerInterceptor) Execute(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

Execute provides a mock function with given fields: ctx, req, info, handler

type MockUnaryServerInterceptor_Execute_Call

type MockUnaryServerInterceptor_Execute_Call struct {
	*mock.Call
}

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

func (*MockUnaryServerInterceptor_Execute_Call) Return

func (*MockUnaryServerInterceptor_Execute_Call) Run

func (*MockUnaryServerInterceptor_Execute_Call) RunAndReturn

type MockUnaryServerInterceptor_Expecter

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

func (*MockUnaryServerInterceptor_Expecter) Execute

func (_e *MockUnaryServerInterceptor_Expecter) Execute(ctx interface{}, req interface{}, info interface{}, handler interface{}) *MockUnaryServerInterceptor_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • req interface{}
  • info *grpc.UnaryServerInfo
  • handler grpc.UnaryHandler

Jump to

Keyboard shortcuts

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