Documentation
¶
Index ¶
- type MockMediaLister
- type MockMediaLister_Expecter
- type MockMediaLister_ListByCursor_Call
- func (_c *MockMediaLister_ListByCursor_Call) Return(medias []*media.Media, err error) *MockMediaLister_ListByCursor_Call
- func (_c *MockMediaLister_ListByCursor_Call) Run(run func(ctx context.Context, userID int, limit int, beforeID int)) *MockMediaLister_ListByCursor_Call
- func (_c *MockMediaLister_ListByCursor_Call) RunAndReturn(...) *MockMediaLister_ListByCursor_Call
- type MockTextGenerationService
- func (_m *MockTextGenerationService) EXPECT() *MockTextGenerationService_Expecter
- func (_mock *MockTextGenerationService) EnhanceText(ctx context.Context, content string, format string, mediaContext string) (textgen.EnhanceResult, error)
- func (_mock *MockTextGenerationService) TranslateText(ctx context.Context, content string, title string, metaDescription string, ...) (textgen.TranslateResult, error)
- type MockTextGenerationService_EnhanceText_Call
- func (_c *MockTextGenerationService_EnhanceText_Call) Return(enhanceResult textgen.EnhanceResult, err error) *MockTextGenerationService_EnhanceText_Call
- func (_c *MockTextGenerationService_EnhanceText_Call) Run(...) *MockTextGenerationService_EnhanceText_Call
- func (_c *MockTextGenerationService_EnhanceText_Call) RunAndReturn(...) *MockTextGenerationService_EnhanceText_Call
- type MockTextGenerationService_Expecter
- func (_e *MockTextGenerationService_Expecter) EnhanceText(ctx any, content any, format any, mediaContext any) *MockTextGenerationService_EnhanceText_Call
- func (_e *MockTextGenerationService_Expecter) TranslateText(ctx any, content any, title any, metaDescription any, sourceLang any, ...) *MockTextGenerationService_TranslateText_Call
- type MockTextGenerationService_TranslateText_Call
- func (_c *MockTextGenerationService_TranslateText_Call) Return(translateResult textgen.TranslateResult, err error) *MockTextGenerationService_TranslateText_Call
- func (_c *MockTextGenerationService_TranslateText_Call) Run(...) *MockTextGenerationService_TranslateText_Call
- func (_c *MockTextGenerationService_TranslateText_Call) RunAndReturn(...) *MockTextGenerationService_TranslateText_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMediaLister ¶
MockMediaLister is an autogenerated mock type for the MediaLister type
func NewMockMediaLister ¶
func NewMockMediaLister(t interface {
mock.TestingT
Cleanup(func())
}) *MockMediaLister
NewMockMediaLister creates a new instance of MockMediaLister. 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 (*MockMediaLister) EXPECT ¶
func (_m *MockMediaLister) EXPECT() *MockMediaLister_Expecter
func (*MockMediaLister) ListByCursor ¶
func (_mock *MockMediaLister) ListByCursor(ctx context.Context, userID int, limit int, beforeID int) ([]*media.Media, error)
ListByCursor provides a mock function for the type MockMediaLister
type MockMediaLister_Expecter ¶
type MockMediaLister_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMediaLister_Expecter) ListByCursor ¶
func (_e *MockMediaLister_Expecter) ListByCursor(ctx any, userID any, limit any, beforeID any) *MockMediaLister_ListByCursor_Call
ListByCursor is a helper method to define mock.On call
- ctx context.Context
- userID int
- limit int
- beforeID int
type MockMediaLister_ListByCursor_Call ¶
MockMediaLister_ListByCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByCursor'
func (*MockMediaLister_ListByCursor_Call) Return ¶
func (_c *MockMediaLister_ListByCursor_Call) Return(medias []*media.Media, err error) *MockMediaLister_ListByCursor_Call
func (*MockMediaLister_ListByCursor_Call) Run ¶
func (_c *MockMediaLister_ListByCursor_Call) Run(run func(ctx context.Context, userID int, limit int, beforeID int)) *MockMediaLister_ListByCursor_Call
func (*MockMediaLister_ListByCursor_Call) RunAndReturn ¶
func (_c *MockMediaLister_ListByCursor_Call) RunAndReturn(run func(ctx context.Context, userID int, limit int, beforeID int) ([]*media.Media, error)) *MockMediaLister_ListByCursor_Call
type MockTextGenerationService ¶
MockTextGenerationService is an autogenerated mock type for the TextGenerationService type
func NewMockTextGenerationService ¶
func NewMockTextGenerationService(t interface {
mock.TestingT
Cleanup(func())
}) *MockTextGenerationService
NewMockTextGenerationService creates a new instance of MockTextGenerationService. 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 (*MockTextGenerationService) EXPECT ¶
func (_m *MockTextGenerationService) EXPECT() *MockTextGenerationService_Expecter
func (*MockTextGenerationService) EnhanceText ¶
func (_mock *MockTextGenerationService) EnhanceText(ctx context.Context, content string, format string, mediaContext string) (textgen.EnhanceResult, error)
EnhanceText provides a mock function for the type MockTextGenerationService
func (*MockTextGenerationService) TranslateText ¶
func (_mock *MockTextGenerationService) TranslateText(ctx context.Context, content string, title string, metaDescription string, sourceLang string, targetLang string, format string) (textgen.TranslateResult, error)
TranslateText provides a mock function for the type MockTextGenerationService
type MockTextGenerationService_EnhanceText_Call ¶
MockTextGenerationService_EnhanceText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnhanceText'
func (*MockTextGenerationService_EnhanceText_Call) Return ¶
func (_c *MockTextGenerationService_EnhanceText_Call) Return(enhanceResult textgen.EnhanceResult, err error) *MockTextGenerationService_EnhanceText_Call
func (*MockTextGenerationService_EnhanceText_Call) Run ¶
func (_c *MockTextGenerationService_EnhanceText_Call) Run(run func(ctx context.Context, content string, format string, mediaContext string)) *MockTextGenerationService_EnhanceText_Call
func (*MockTextGenerationService_EnhanceText_Call) RunAndReturn ¶
func (_c *MockTextGenerationService_EnhanceText_Call) RunAndReturn(run func(ctx context.Context, content string, format string, mediaContext string) (textgen.EnhanceResult, error)) *MockTextGenerationService_EnhanceText_Call
type MockTextGenerationService_Expecter ¶
type MockTextGenerationService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTextGenerationService_Expecter) EnhanceText ¶
func (_e *MockTextGenerationService_Expecter) EnhanceText(ctx any, content any, format any, mediaContext any) *MockTextGenerationService_EnhanceText_Call
EnhanceText is a helper method to define mock.On call
- ctx context.Context
- content string
- format string
- mediaContext string
func (*MockTextGenerationService_Expecter) TranslateText ¶
func (_e *MockTextGenerationService_Expecter) TranslateText(ctx any, content any, title any, metaDescription any, sourceLang any, targetLang any, format any) *MockTextGenerationService_TranslateText_Call
TranslateText is a helper method to define mock.On call
- ctx context.Context
- content string
- title string
- metaDescription string
- sourceLang string
- targetLang string
- format string
type MockTextGenerationService_TranslateText_Call ¶
MockTextGenerationService_TranslateText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TranslateText'
func (*MockTextGenerationService_TranslateText_Call) Return ¶
func (_c *MockTextGenerationService_TranslateText_Call) Return(translateResult textgen.TranslateResult, err error) *MockTextGenerationService_TranslateText_Call
func (*MockTextGenerationService_TranslateText_Call) Run ¶
func (_c *MockTextGenerationService_TranslateText_Call) Run(run func(ctx context.Context, content string, title string, metaDescription string, sourceLang string, targetLang string, format string)) *MockTextGenerationService_TranslateText_Call