Mocktranslations

package
v0.0.0-...-ac44e76 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTranslationsProvider

type MockTranslationsProvider struct {
	mock.Mock
}

MockTranslationsProvider is an autogenerated mock type for the TranslationsProvider type

func NewMockTranslationsProvider

func NewMockTranslationsProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTranslationsProvider

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

func (*MockTranslationsProvider) ProcessWebhook

func (_m *MockTranslationsProvider) ProcessWebhook(ctx context.Context, originalRequest *http.Request, hookData []byte) (*translations.TranslatableCollection, []common.TranslationData, error)

ProcessWebhook provides a mock function with given fields: ctx, originalRequest, hookData

func (*MockTranslationsProvider) SendToTranslation

func (_m *MockTranslationsProvider) SendToTranslation(ctx context.Context, collection string, data []common.TranslationData) error

SendToTranslation provides a mock function with given fields: ctx, collection, data

type MockTranslationsProvider_Expecter

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

func (*MockTranslationsProvider_Expecter) ProcessWebhook

func (_e *MockTranslationsProvider_Expecter) ProcessWebhook(ctx interface{}, originalRequest interface{}, hookData interface{}) *MockTranslationsProvider_ProcessWebhook_Call

ProcessWebhook is a helper method to define mock.On call

  • ctx context.Context
  • originalRequest *http.Request
  • hookData []byte

func (*MockTranslationsProvider_Expecter) SendToTranslation

func (_e *MockTranslationsProvider_Expecter) SendToTranslation(ctx interface{}, collection interface{}, data interface{}) *MockTranslationsProvider_SendToTranslation_Call

SendToTranslation is a helper method to define mock.On call

  • ctx context.Context
  • collection string
  • data []common.TranslationData

type MockTranslationsProvider_ProcessWebhook_Call

type MockTranslationsProvider_ProcessWebhook_Call struct {
	*mock.Call
}

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

func (*MockTranslationsProvider_ProcessWebhook_Call) Return

func (*MockTranslationsProvider_ProcessWebhook_Call) Run

type MockTranslationsProvider_SendToTranslation_Call

type MockTranslationsProvider_SendToTranslation_Call struct {
	*mock.Call
}

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

func (*MockTranslationsProvider_SendToTranslation_Call) Return

func (*MockTranslationsProvider_SendToTranslation_Call) Run

func (*MockTranslationsProvider_SendToTranslation_Call) RunAndReturn

Jump to

Keyboard shortcuts

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