mocks

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentServiceClient

type DocumentServiceClient struct {
	mock.Mock
}

DocumentServiceClient is an autogenerated mock type for the DocumentServiceClient type

func NewDocumentServiceClient

func NewDocumentServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentServiceClient

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

func (*DocumentServiceClient) GeneratePreview

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

func (*DocumentServiceClient) SetupGeneratePreview

func (mock *DocumentServiceClient) SetupGeneratePreview(mockStream *DocumentService_GeneratePreviewClient)

func (*DocumentServiceClient) SetupGeneratePreviewThrowsError

func (mock *DocumentServiceClient) SetupGeneratePreviewThrowsError(err error)

type DocumentServiceClient_Expecter

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

func (*DocumentServiceClient_Expecter) GeneratePreview

func (_e *DocumentServiceClient_Expecter) GeneratePreview(ctx interface{}, in interface{}, opts ...interface{}) *DocumentServiceClient_GeneratePreview_Call

GeneratePreview is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.GeneratePreviewRequest
  • opts ...grpc.CallOption

type DocumentServiceClient_GeneratePreview_Call

type DocumentServiceClient_GeneratePreview_Call struct {
	*mock.Call
}

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

func (*DocumentServiceClient_GeneratePreview_Call) Run

type DocumentServiceGateway

type DocumentServiceGateway struct {
	mock.Mock
}

DocumentServiceGateway is an autogenerated mock type for the DocumentServiceGateway type

func NewDocumentServiceGateway

func NewDocumentServiceGateway(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentServiceGateway

NewDocumentServiceGateway creates a new instance of DocumentServiceGateway. 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 (*DocumentServiceGateway) CreateDocumentServiceClient

func (_m *DocumentServiceGateway) CreateDocumentServiceClient() (v1.DocumentServiceClient, error)

CreateDocumentServiceClient provides a mock function with given fields:

func (*DocumentServiceGateway) EXPECT

func (*DocumentServiceGateway) SetupDocumentServiceGatewayToReturnClient

func (mock *DocumentServiceGateway) SetupDocumentServiceGatewayToReturnClient(mockClient *DocumentServiceClient)

func (*DocumentServiceGateway) SetupDocumentServiceGatewayToReturnDialError

func (mock *DocumentServiceGateway) SetupDocumentServiceGatewayToReturnDialError()

type DocumentServiceGateway_CreateDocumentServiceClient_Call

type DocumentServiceGateway_CreateDocumentServiceClient_Call struct {
	*mock.Call
}

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

func (*DocumentServiceGateway_CreateDocumentServiceClient_Call) Return

func (*DocumentServiceGateway_CreateDocumentServiceClient_Call) Run

func (*DocumentServiceGateway_CreateDocumentServiceClient_Call) RunAndReturn

type DocumentServiceGateway_Expecter

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

func (*DocumentServiceGateway_Expecter) CreateDocumentServiceClient

CreateDocumentServiceClient is a helper method to define mock.On call

type DocumentService_GeneratePreviewClient

type DocumentService_GeneratePreviewClient struct {
	mock.Mock
}

DocumentService_GeneratePreviewClient is an autogenerated mock type for the DocumentService_GeneratePreviewClient type

func NewDocumentService_GeneratePreviewClient

func NewDocumentService_GeneratePreviewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentService_GeneratePreviewClient

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

CloseSend provides a mock function with given fields:

func (*DocumentService_GeneratePreviewClient) Context

Context provides a mock function with given fields:

func (*DocumentService_GeneratePreviewClient) EXPECT

func (*DocumentService_GeneratePreviewClient) Header

Header provides a mock function with given fields:

func (*DocumentService_GeneratePreviewClient) Recv

Recv provides a mock function with given fields:

func (*DocumentService_GeneratePreviewClient) RecvMsg

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

RecvMsg provides a mock function with given fields: m

func (*DocumentService_GeneratePreviewClient) SendMsg

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

SendMsg provides a mock function with given fields: m

func (*DocumentService_GeneratePreviewClient) SetupEndOfResponse

func (mock *DocumentService_GeneratePreviewClient) SetupEndOfResponse()

func (*DocumentService_GeneratePreviewClient) SetupStreamClose

func (mock *DocumentService_GeneratePreviewClient) SetupStreamClose()

func (*DocumentService_GeneratePreviewClient) SetupStreamResponse

func (mock *DocumentService_GeneratePreviewClient) SetupStreamResponse(response *v1.GeneratePreviewResponse)

func (*DocumentService_GeneratePreviewClient) SetupStreamValidChunk

func (mock *DocumentService_GeneratePreviewClient) SetupStreamValidChunk()

func (*DocumentService_GeneratePreviewClient) SetupStreamValidMetadata

func (mock *DocumentService_GeneratePreviewClient) SetupStreamValidMetadata()

func (*DocumentService_GeneratePreviewClient) Trailer

Trailer provides a mock function with given fields:

type DocumentService_GeneratePreviewClient_CloseSend_Call

type DocumentService_GeneratePreviewClient_CloseSend_Call struct {
	*mock.Call
}

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

func (*DocumentService_GeneratePreviewClient_CloseSend_Call) Return

func (*DocumentService_GeneratePreviewClient_CloseSend_Call) Run

func (*DocumentService_GeneratePreviewClient_CloseSend_Call) RunAndReturn

type DocumentService_GeneratePreviewClient_Context_Call

type DocumentService_GeneratePreviewClient_Context_Call struct {
	*mock.Call
}

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

func (*DocumentService_GeneratePreviewClient_Context_Call) Return

func (*DocumentService_GeneratePreviewClient_Context_Call) Run

func (*DocumentService_GeneratePreviewClient_Context_Call) RunAndReturn

type DocumentService_GeneratePreviewClient_Expecter

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

func (*DocumentService_GeneratePreviewClient_Expecter) CloseSend

CloseSend is a helper method to define mock.On call

func (*DocumentService_GeneratePreviewClient_Expecter) Context

Context is a helper method to define mock.On call

func (*DocumentService_GeneratePreviewClient_Expecter) Header

Header is a helper method to define mock.On call

func (*DocumentService_GeneratePreviewClient_Expecter) Recv

Recv is a helper method to define mock.On call

func (*DocumentService_GeneratePreviewClient_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*DocumentService_GeneratePreviewClient_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*DocumentService_GeneratePreviewClient_Expecter) Trailer

Trailer is a helper method to define mock.On call

type DocumentService_GeneratePreviewClient_Header_Call

type DocumentService_GeneratePreviewClient_Header_Call struct {
	*mock.Call
}

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

func (*DocumentService_GeneratePreviewClient_Header_Call) Return

func (*DocumentService_GeneratePreviewClient_Header_Call) Run

func (*DocumentService_GeneratePreviewClient_Header_Call) RunAndReturn

type DocumentService_GeneratePreviewClient_RecvMsg_Call

type DocumentService_GeneratePreviewClient_RecvMsg_Call struct {
	*mock.Call
}

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

func (*DocumentService_GeneratePreviewClient_RecvMsg_Call) Return

func (*DocumentService_GeneratePreviewClient_RecvMsg_Call) Run

func (*DocumentService_GeneratePreviewClient_RecvMsg_Call) RunAndReturn

type DocumentService_GeneratePreviewClient_Recv_Call

type DocumentService_GeneratePreviewClient_Recv_Call struct {
	*mock.Call
}

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

func (*DocumentService_GeneratePreviewClient_Recv_Call) Return

func (*DocumentService_GeneratePreviewClient_Recv_Call) Run

func (*DocumentService_GeneratePreviewClient_Recv_Call) RunAndReturn

type DocumentService_GeneratePreviewClient_SendMsg_Call

type DocumentService_GeneratePreviewClient_SendMsg_Call struct {
	*mock.Call
}

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

func (*DocumentService_GeneratePreviewClient_SendMsg_Call) Return

func (*DocumentService_GeneratePreviewClient_SendMsg_Call) Run

func (*DocumentService_GeneratePreviewClient_SendMsg_Call) RunAndReturn

type DocumentService_GeneratePreviewClient_Trailer_Call

type DocumentService_GeneratePreviewClient_Trailer_Call struct {
	*mock.Call
}

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

func (*DocumentService_GeneratePreviewClient_Trailer_Call) Return

func (*DocumentService_GeneratePreviewClient_Trailer_Call) Run

func (*DocumentService_GeneratePreviewClient_Trailer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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