Documentation
¶
Index ¶
- type MockCommentRepository
- func (_mock *MockCommentRepository) Create(ctx context.Context, comment *content.Comment) error
- func (_mock *MockCommentRepository) Delete(ctx context.Context, id int) error
- func (_mock *MockCommentRepository) DeleteByUserID(ctx context.Context, userID int) error
- func (_m *MockCommentRepository) EXPECT() *MockCommentRepository_Expecter
- func (_mock *MockCommentRepository) GetByContentID(ctx context.Context, contentID int) ([]*content.Comment, error)
- func (_mock *MockCommentRepository) GetByContentIDForModeration(ctx context.Context, contentID int) ([]*content.Comment, error)
- func (_mock *MockCommentRepository) GetByID(ctx context.Context, id int) (*content.Comment, error)
- func (_mock *MockCommentRepository) GetByStatus(ctx context.Context, status content.CommentStatus) ([]*content.Comment, error)
- func (_mock *MockCommentRepository) GetByUserID(ctx context.Context, userID int) ([]*content.Comment, error)
- func (_mock *MockCommentRepository) UpdateStatus(ctx context.Context, id int, status content.CommentStatus) error
- type MockCommentRepository_Create_Call
- func (_c *MockCommentRepository_Create_Call) Return(err error) *MockCommentRepository_Create_Call
- func (_c *MockCommentRepository_Create_Call) Run(run func(ctx context.Context, comment *content.Comment)) *MockCommentRepository_Create_Call
- func (_c *MockCommentRepository_Create_Call) RunAndReturn(run func(ctx context.Context, comment *content.Comment) error) *MockCommentRepository_Create_Call
- type MockCommentRepository_DeleteByUserID_Call
- func (_c *MockCommentRepository_DeleteByUserID_Call) Return(err error) *MockCommentRepository_DeleteByUserID_Call
- func (_c *MockCommentRepository_DeleteByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockCommentRepository_DeleteByUserID_Call
- func (_c *MockCommentRepository_DeleteByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockCommentRepository_DeleteByUserID_Call
- type MockCommentRepository_Delete_Call
- func (_c *MockCommentRepository_Delete_Call) Return(err error) *MockCommentRepository_Delete_Call
- func (_c *MockCommentRepository_Delete_Call) Run(run func(ctx context.Context, id int)) *MockCommentRepository_Delete_Call
- func (_c *MockCommentRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id int) error) *MockCommentRepository_Delete_Call
- type MockCommentRepository_Expecter
- func (_e *MockCommentRepository_Expecter) Create(ctx any, comment any) *MockCommentRepository_Create_Call
- func (_e *MockCommentRepository_Expecter) Delete(ctx any, id any) *MockCommentRepository_Delete_Call
- func (_e *MockCommentRepository_Expecter) DeleteByUserID(ctx any, userID any) *MockCommentRepository_DeleteByUserID_Call
- func (_e *MockCommentRepository_Expecter) GetByContentID(ctx any, contentID any) *MockCommentRepository_GetByContentID_Call
- func (_e *MockCommentRepository_Expecter) GetByContentIDForModeration(ctx any, contentID any) *MockCommentRepository_GetByContentIDForModeration_Call
- func (_e *MockCommentRepository_Expecter) GetByID(ctx any, id any) *MockCommentRepository_GetByID_Call
- func (_e *MockCommentRepository_Expecter) GetByStatus(ctx any, status any) *MockCommentRepository_GetByStatus_Call
- func (_e *MockCommentRepository_Expecter) GetByUserID(ctx any, userID any) *MockCommentRepository_GetByUserID_Call
- func (_e *MockCommentRepository_Expecter) UpdateStatus(ctx any, id any, status any) *MockCommentRepository_UpdateStatus_Call
- type MockCommentRepository_GetByContentIDForModeration_Call
- func (_c *MockCommentRepository_GetByContentIDForModeration_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByContentIDForModeration_Call
- func (_c *MockCommentRepository_GetByContentIDForModeration_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentRepository_GetByContentIDForModeration_Call
- func (_c *MockCommentRepository_GetByContentIDForModeration_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockCommentRepository_GetByContentIDForModeration_Call
- type MockCommentRepository_GetByContentID_Call
- func (_c *MockCommentRepository_GetByContentID_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByContentID_Call
- func (_c *MockCommentRepository_GetByContentID_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentRepository_GetByContentID_Call
- func (_c *MockCommentRepository_GetByContentID_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockCommentRepository_GetByContentID_Call
- type MockCommentRepository_GetByID_Call
- func (_c *MockCommentRepository_GetByID_Call) Return(comment *content.Comment, err error) *MockCommentRepository_GetByID_Call
- func (_c *MockCommentRepository_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockCommentRepository_GetByID_Call
- func (_c *MockCommentRepository_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*content.Comment, error)) *MockCommentRepository_GetByID_Call
- type MockCommentRepository_GetByStatus_Call
- func (_c *MockCommentRepository_GetByStatus_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByStatus_Call
- func (_c *MockCommentRepository_GetByStatus_Call) Run(run func(ctx context.Context, status content.CommentStatus)) *MockCommentRepository_GetByStatus_Call
- func (_c *MockCommentRepository_GetByStatus_Call) RunAndReturn(...) *MockCommentRepository_GetByStatus_Call
- type MockCommentRepository_GetByUserID_Call
- func (_c *MockCommentRepository_GetByUserID_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByUserID_Call
- func (_c *MockCommentRepository_GetByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockCommentRepository_GetByUserID_Call
- func (_c *MockCommentRepository_GetByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*content.Comment, error)) *MockCommentRepository_GetByUserID_Call
- type MockCommentRepository_UpdateStatus_Call
- func (_c *MockCommentRepository_UpdateStatus_Call) Return(err error) *MockCommentRepository_UpdateStatus_Call
- func (_c *MockCommentRepository_UpdateStatus_Call) Run(run func(ctx context.Context, id int, status content.CommentStatus)) *MockCommentRepository_UpdateStatus_Call
- func (_c *MockCommentRepository_UpdateStatus_Call) RunAndReturn(run func(ctx context.Context, id int, status content.CommentStatus) error) *MockCommentRepository_UpdateStatus_Call
- type MockHookExecutor
- type MockHookExecutor_Execute_Call
- func (_c *MockHookExecutor_Execute_Call) Return(bytes []byte, err error) *MockHookExecutor_Execute_Call
- func (_c *MockHookExecutor_Execute_Call) Run(run func(ctx context.Context, hookName plugin.HookName, data []byte)) *MockHookExecutor_Execute_Call
- func (_c *MockHookExecutor_Execute_Call) RunAndReturn(...) *MockHookExecutor_Execute_Call
- type MockHookExecutor_Expecter
- type MockPostTypeServiceInterface
- func (_m *MockPostTypeServiceInterface) EXPECT() *MockPostTypeServiceInterface_Expecter
- func (_mock *MockPostTypeServiceInterface) GetBySlug(slug string) (content.PostType, error)
- func (_mock *MockPostTypeServiceInterface) GetFieldsByPostType(slug string) ([]customfield.FieldSchema, error)
- func (_mock *MockPostTypeServiceInterface) GetSystemFieldsByPostType(slug string) ([]customfield.FieldSchema, error)
- type MockPostTypeServiceInterface_Expecter
- func (_e *MockPostTypeServiceInterface_Expecter) GetBySlug(slug any) *MockPostTypeServiceInterface_GetBySlug_Call
- func (_e *MockPostTypeServiceInterface_Expecter) GetFieldsByPostType(slug any) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
- func (_e *MockPostTypeServiceInterface_Expecter) GetSystemFieldsByPostType(slug any) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
- type MockPostTypeServiceInterface_GetBySlug_Call
- func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Return(postType content.PostType, err error) *MockPostTypeServiceInterface_GetBySlug_Call
- func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetBySlug_Call
- func (_c *MockPostTypeServiceInterface_GetBySlug_Call) RunAndReturn(run func(slug string) (content.PostType, error)) *MockPostTypeServiceInterface_GetBySlug_Call
- type MockPostTypeServiceInterface_GetFieldsByPostType_Call
- func (_c *MockPostTypeServiceInterface_GetFieldsByPostType_Call) Return(fieldSchemas []customfield.FieldSchema, err error) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
- func (_c *MockPostTypeServiceInterface_GetFieldsByPostType_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
- func (_c *MockPostTypeServiceInterface_GetFieldsByPostType_Call) RunAndReturn(run func(slug string) ([]customfield.FieldSchema, error)) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
- type MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
- func (_c *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) Return(fieldSchemas []customfield.FieldSchema, err error) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
- func (_c *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
- func (_c *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) RunAndReturn(run func(slug string) ([]customfield.FieldSchema, error)) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
- type MockRepository
- func (_mock *MockRepository) AuthorExists(ctx context.Context, username string) (bool, error)
- func (_mock *MockRepository) CheckSlugUnique(ctx context.Context, slug string, language string) (bool, error)
- func (_mock *MockRepository) Create(ctx context.Context, content1 *content.Content) error
- func (_mock *MockRepository) Delete(ctx context.Context, id int, userID int) error
- func (_mock *MockRepository) DeleteByID(ctx context.Context, id int) error
- func (_m *MockRepository) EXPECT() *MockRepository_Expecter
- func (_mock *MockRepository) GetAll(ctx context.Context, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockRepository) GetByID(ctx context.Context, id int) (*content.Content, error)
- func (_mock *MockRepository) GetBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
- func (_mock *MockRepository) GetByUser(ctx context.Context, userID int, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockRepository) GetLatestByPostType(ctx context.Context, excludeID int, postType string, language string, ...) ([]*content.Content, error)
- func (_mock *MockRepository) GetPublished(ctx context.Context, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockRepository) GetPublishedArchive(ctx context.Context, postType string, language string) ([]*content.ArchiveMonth, error)
- func (_mock *MockRepository) GetPublishedAuthors(ctx context.Context, limit int, offset int) ([]*content.PublishedAuthor, error)
- func (_mock *MockRepository) GetPublishedByAuthorUsername(ctx context.Context, username string, language string, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockRepository) GetPublishedByPostType(ctx context.Context, postType string, language string, year int, month int, ...) ([]*content.Content, error)
- func (_mock *MockRepository) GetPublishedBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
- func (_mock *MockRepository) GetPublishedBySlugAny(ctx context.Context, slug string) (*content.Content, error)
- func (_mock *MockRepository) GetPublishedByTag(ctx context.Context, tag string, language string, year int, month int, ...) ([]*content.Content, error)
- func (_mock *MockRepository) GetPublishedCustomPostTypes(ctx context.Context) ([]string, error)
- func (_mock *MockRepository) GetPublishedPages(ctx context.Context) ([]*content.Content, error)
- func (_mock *MockRepository) GetPublishedTags(ctx context.Context) ([]string, error)
- func (_mock *MockRepository) GetRelatedByTags(ctx context.Context, excludeID int, tags []string, postType string, ...) ([]*content.Content, error)
- func (_mock *MockRepository) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
- func (_mock *MockRepository) ListByCursor(ctx context.Context, userID int, limit int, beforeID int, ...) ([]*content.Content, error)
- func (_mock *MockRepository) ListByFilters(ctx context.Context, userID int, filters content.ContentFilters) ([]*content.Content, error)
- func (_mock *MockRepository) SearchPublished(ctx context.Context, query string, limit int) ([]*content.Content, error)
- func (_mock *MockRepository) TranslationGroupExists(ctx context.Context, id int) (bool, error)
- func (_mock *MockRepository) Update(ctx context.Context, content1 *content.Content) error
- type MockRepository_AuthorExists_Call
- func (_c *MockRepository_AuthorExists_Call) Return(b bool, err error) *MockRepository_AuthorExists_Call
- func (_c *MockRepository_AuthorExists_Call) Run(run func(ctx context.Context, username string)) *MockRepository_AuthorExists_Call
- func (_c *MockRepository_AuthorExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockRepository_AuthorExists_Call
- type MockRepository_CheckSlugUnique_Call
- func (_c *MockRepository_CheckSlugUnique_Call) Return(b bool, err error) *MockRepository_CheckSlugUnique_Call
- func (_c *MockRepository_CheckSlugUnique_Call) Run(run func(ctx context.Context, slug string, language string)) *MockRepository_CheckSlugUnique_Call
- func (_c *MockRepository_CheckSlugUnique_Call) RunAndReturn(run func(ctx context.Context, slug string, language string) (bool, error)) *MockRepository_CheckSlugUnique_Call
- type MockRepository_Create_Call
- func (_c *MockRepository_Create_Call) Return(err error) *MockRepository_Create_Call
- func (_c *MockRepository_Create_Call) Run(run func(ctx context.Context, content1 *content.Content)) *MockRepository_Create_Call
- func (_c *MockRepository_Create_Call) RunAndReturn(run func(ctx context.Context, content1 *content.Content) error) *MockRepository_Create_Call
- type MockRepository_DeleteByID_Call
- func (_c *MockRepository_DeleteByID_Call) Return(err error) *MockRepository_DeleteByID_Call
- func (_c *MockRepository_DeleteByID_Call) Run(run func(ctx context.Context, id int)) *MockRepository_DeleteByID_Call
- func (_c *MockRepository_DeleteByID_Call) RunAndReturn(run func(ctx context.Context, id int) error) *MockRepository_DeleteByID_Call
- type MockRepository_Delete_Call
- func (_c *MockRepository_Delete_Call) Return(err error) *MockRepository_Delete_Call
- func (_c *MockRepository_Delete_Call) Run(run func(ctx context.Context, id int, userID int)) *MockRepository_Delete_Call
- func (_c *MockRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id int, userID int) error) *MockRepository_Delete_Call
- type MockRepository_Expecter
- func (_e *MockRepository_Expecter) AuthorExists(ctx any, username any) *MockRepository_AuthorExists_Call
- func (_e *MockRepository_Expecter) CheckSlugUnique(ctx any, slug any, language any) *MockRepository_CheckSlugUnique_Call
- func (_e *MockRepository_Expecter) Create(ctx any, content1 any) *MockRepository_Create_Call
- func (_e *MockRepository_Expecter) Delete(ctx any, id any, userID any) *MockRepository_Delete_Call
- func (_e *MockRepository_Expecter) DeleteByID(ctx any, id any) *MockRepository_DeleteByID_Call
- func (_e *MockRepository_Expecter) GetAll(ctx any, limit any, offset any) *MockRepository_GetAll_Call
- func (_e *MockRepository_Expecter) GetByID(ctx any, id any) *MockRepository_GetByID_Call
- func (_e *MockRepository_Expecter) GetBySlug(ctx any, slug any, language any) *MockRepository_GetBySlug_Call
- func (_e *MockRepository_Expecter) GetByUser(ctx any, userID any, limit any, offset any) *MockRepository_GetByUser_Call
- func (_e *MockRepository_Expecter) GetLatestByPostType(ctx any, excludeID any, postType any, language any, limit any) *MockRepository_GetLatestByPostType_Call
- func (_e *MockRepository_Expecter) GetPublished(ctx any, limit any, offset any) *MockRepository_GetPublished_Call
- func (_e *MockRepository_Expecter) GetPublishedArchive(ctx any, postType any, language any) *MockRepository_GetPublishedArchive_Call
- func (_e *MockRepository_Expecter) GetPublishedAuthors(ctx any, limit any, offset any) *MockRepository_GetPublishedAuthors_Call
- func (_e *MockRepository_Expecter) GetPublishedByAuthorUsername(ctx any, username any, language any, limit any, offset any) *MockRepository_GetPublishedByAuthorUsername_Call
- func (_e *MockRepository_Expecter) GetPublishedByPostType(ctx any, postType any, language any, year any, month any, limit any, ...) *MockRepository_GetPublishedByPostType_Call
- func (_e *MockRepository_Expecter) GetPublishedBySlug(ctx any, slug any, language any) *MockRepository_GetPublishedBySlug_Call
- func (_e *MockRepository_Expecter) GetPublishedBySlugAny(ctx any, slug any) *MockRepository_GetPublishedBySlugAny_Call
- func (_e *MockRepository_Expecter) GetPublishedByTag(ctx any, tag any, language any, year any, month any, limit any, offset any) *MockRepository_GetPublishedByTag_Call
- func (_e *MockRepository_Expecter) GetPublishedCustomPostTypes(ctx any) *MockRepository_GetPublishedCustomPostTypes_Call
- func (_e *MockRepository_Expecter) GetPublishedPages(ctx any) *MockRepository_GetPublishedPages_Call
- func (_e *MockRepository_Expecter) GetPublishedTags(ctx any) *MockRepository_GetPublishedTags_Call
- func (_e *MockRepository_Expecter) GetRelatedByTags(ctx any, excludeID any, tags any, postType any, language any, limit any) *MockRepository_GetRelatedByTags_Call
- func (_e *MockRepository_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockRepository_GetTranslations_Call
- func (_e *MockRepository_Expecter) ListByCursor(ctx any, userID any, limit any, beforeID any, filters any) *MockRepository_ListByCursor_Call
- func (_e *MockRepository_Expecter) ListByFilters(ctx any, userID any, filters any) *MockRepository_ListByFilters_Call
- func (_e *MockRepository_Expecter) SearchPublished(ctx any, query any, limit any) *MockRepository_SearchPublished_Call
- func (_e *MockRepository_Expecter) TranslationGroupExists(ctx any, id any) *MockRepository_TranslationGroupExists_Call
- func (_e *MockRepository_Expecter) Update(ctx any, content1 any) *MockRepository_Update_Call
- type MockRepository_GetAll_Call
- func (_c *MockRepository_GetAll_Call) Return(contents []*content.Content, err error) *MockRepository_GetAll_Call
- func (_c *MockRepository_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockRepository_GetAll_Call
- func (_c *MockRepository_GetAll_Call) RunAndReturn(...) *MockRepository_GetAll_Call
- type MockRepository_GetByID_Call
- func (_c *MockRepository_GetByID_Call) Return(content1 *content.Content, err error) *MockRepository_GetByID_Call
- func (_c *MockRepository_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockRepository_GetByID_Call
- func (_c *MockRepository_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*content.Content, error)) *MockRepository_GetByID_Call
- type MockRepository_GetBySlug_Call
- func (_c *MockRepository_GetBySlug_Call) Return(content1 *content.Content, err error) *MockRepository_GetBySlug_Call
- func (_c *MockRepository_GetBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockRepository_GetBySlug_Call
- func (_c *MockRepository_GetBySlug_Call) RunAndReturn(...) *MockRepository_GetBySlug_Call
- type MockRepository_GetByUser_Call
- func (_c *MockRepository_GetByUser_Call) Return(contents []*content.Content, err error) *MockRepository_GetByUser_Call
- func (_c *MockRepository_GetByUser_Call) Run(run func(ctx context.Context, userID int, limit int, offset int)) *MockRepository_GetByUser_Call
- func (_c *MockRepository_GetByUser_Call) RunAndReturn(...) *MockRepository_GetByUser_Call
- type MockRepository_GetLatestByPostType_Call
- func (_c *MockRepository_GetLatestByPostType_Call) Return(contents []*content.Content, err error) *MockRepository_GetLatestByPostType_Call
- func (_c *MockRepository_GetLatestByPostType_Call) Run(...) *MockRepository_GetLatestByPostType_Call
- func (_c *MockRepository_GetLatestByPostType_Call) RunAndReturn(...) *MockRepository_GetLatestByPostType_Call
- type MockRepository_GetPublishedArchive_Call
- func (_c *MockRepository_GetPublishedArchive_Call) Return(archiveMonths []*content.ArchiveMonth, err error) *MockRepository_GetPublishedArchive_Call
- func (_c *MockRepository_GetPublishedArchive_Call) Run(run func(ctx context.Context, postType string, language string)) *MockRepository_GetPublishedArchive_Call
- func (_c *MockRepository_GetPublishedArchive_Call) RunAndReturn(...) *MockRepository_GetPublishedArchive_Call
- type MockRepository_GetPublishedAuthors_Call
- func (_c *MockRepository_GetPublishedAuthors_Call) Return(publishedAuthors []*content.PublishedAuthor, err error) *MockRepository_GetPublishedAuthors_Call
- func (_c *MockRepository_GetPublishedAuthors_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockRepository_GetPublishedAuthors_Call
- func (_c *MockRepository_GetPublishedAuthors_Call) RunAndReturn(...) *MockRepository_GetPublishedAuthors_Call
- type MockRepository_GetPublishedByAuthorUsername_Call
- func (_c *MockRepository_GetPublishedByAuthorUsername_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedByAuthorUsername_Call
- func (_c *MockRepository_GetPublishedByAuthorUsername_Call) Run(...) *MockRepository_GetPublishedByAuthorUsername_Call
- func (_c *MockRepository_GetPublishedByAuthorUsername_Call) RunAndReturn(...) *MockRepository_GetPublishedByAuthorUsername_Call
- type MockRepository_GetPublishedByPostType_Call
- func (_c *MockRepository_GetPublishedByPostType_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedByPostType_Call
- func (_c *MockRepository_GetPublishedByPostType_Call) Run(...) *MockRepository_GetPublishedByPostType_Call
- func (_c *MockRepository_GetPublishedByPostType_Call) RunAndReturn(...) *MockRepository_GetPublishedByPostType_Call
- type MockRepository_GetPublishedBySlugAny_Call
- func (_c *MockRepository_GetPublishedBySlugAny_Call) Return(content1 *content.Content, err error) *MockRepository_GetPublishedBySlugAny_Call
- func (_c *MockRepository_GetPublishedBySlugAny_Call) Run(run func(ctx context.Context, slug string)) *MockRepository_GetPublishedBySlugAny_Call
- func (_c *MockRepository_GetPublishedBySlugAny_Call) RunAndReturn(run func(ctx context.Context, slug string) (*content.Content, error)) *MockRepository_GetPublishedBySlugAny_Call
- type MockRepository_GetPublishedBySlug_Call
- func (_c *MockRepository_GetPublishedBySlug_Call) Return(content1 *content.Content, err error) *MockRepository_GetPublishedBySlug_Call
- func (_c *MockRepository_GetPublishedBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockRepository_GetPublishedBySlug_Call
- func (_c *MockRepository_GetPublishedBySlug_Call) RunAndReturn(...) *MockRepository_GetPublishedBySlug_Call
- type MockRepository_GetPublishedByTag_Call
- func (_c *MockRepository_GetPublishedByTag_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedByTag_Call
- func (_c *MockRepository_GetPublishedByTag_Call) Run(...) *MockRepository_GetPublishedByTag_Call
- func (_c *MockRepository_GetPublishedByTag_Call) RunAndReturn(...) *MockRepository_GetPublishedByTag_Call
- type MockRepository_GetPublishedCustomPostTypes_Call
- func (_c *MockRepository_GetPublishedCustomPostTypes_Call) Return(strings []string, err error) *MockRepository_GetPublishedCustomPostTypes_Call
- func (_c *MockRepository_GetPublishedCustomPostTypes_Call) Run(run func(ctx context.Context)) *MockRepository_GetPublishedCustomPostTypes_Call
- func (_c *MockRepository_GetPublishedCustomPostTypes_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockRepository_GetPublishedCustomPostTypes_Call
- type MockRepository_GetPublishedPages_Call
- func (_c *MockRepository_GetPublishedPages_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedPages_Call
- func (_c *MockRepository_GetPublishedPages_Call) Run(run func(ctx context.Context)) *MockRepository_GetPublishedPages_Call
- func (_c *MockRepository_GetPublishedPages_Call) RunAndReturn(run func(ctx context.Context) ([]*content.Content, error)) *MockRepository_GetPublishedPages_Call
- type MockRepository_GetPublishedTags_Call
- func (_c *MockRepository_GetPublishedTags_Call) Return(strings []string, err error) *MockRepository_GetPublishedTags_Call
- func (_c *MockRepository_GetPublishedTags_Call) Run(run func(ctx context.Context)) *MockRepository_GetPublishedTags_Call
- func (_c *MockRepository_GetPublishedTags_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockRepository_GetPublishedTags_Call
- type MockRepository_GetPublished_Call
- func (_c *MockRepository_GetPublished_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublished_Call
- func (_c *MockRepository_GetPublished_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockRepository_GetPublished_Call
- func (_c *MockRepository_GetPublished_Call) RunAndReturn(...) *MockRepository_GetPublished_Call
- type MockRepository_GetRelatedByTags_Call
- func (_c *MockRepository_GetRelatedByTags_Call) Return(contents []*content.Content, err error) *MockRepository_GetRelatedByTags_Call
- func (_c *MockRepository_GetRelatedByTags_Call) Run(...) *MockRepository_GetRelatedByTags_Call
- func (_c *MockRepository_GetRelatedByTags_Call) RunAndReturn(...) *MockRepository_GetRelatedByTags_Call
- type MockRepository_GetTranslations_Call
- func (_c *MockRepository_GetTranslations_Call) Return(contents []*content.Content, err error) *MockRepository_GetTranslations_Call
- func (_c *MockRepository_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockRepository_GetTranslations_Call
- func (_c *MockRepository_GetTranslations_Call) RunAndReturn(...) *MockRepository_GetTranslations_Call
- type MockRepository_ListByCursor_Call
- func (_c *MockRepository_ListByCursor_Call) Return(contents []*content.Content, err error) *MockRepository_ListByCursor_Call
- func (_c *MockRepository_ListByCursor_Call) Run(run func(ctx context.Context, userID int, limit int, beforeID int, ...)) *MockRepository_ListByCursor_Call
- func (_c *MockRepository_ListByCursor_Call) RunAndReturn(...) *MockRepository_ListByCursor_Call
- type MockRepository_ListByFilters_Call
- func (_c *MockRepository_ListByFilters_Call) Return(contents []*content.Content, err error) *MockRepository_ListByFilters_Call
- func (_c *MockRepository_ListByFilters_Call) Run(run func(ctx context.Context, userID int, filters content.ContentFilters)) *MockRepository_ListByFilters_Call
- func (_c *MockRepository_ListByFilters_Call) RunAndReturn(...) *MockRepository_ListByFilters_Call
- type MockRepository_SearchPublished_Call
- func (_c *MockRepository_SearchPublished_Call) Return(contents []*content.Content, err error) *MockRepository_SearchPublished_Call
- func (_c *MockRepository_SearchPublished_Call) Run(run func(ctx context.Context, query string, limit int)) *MockRepository_SearchPublished_Call
- func (_c *MockRepository_SearchPublished_Call) RunAndReturn(...) *MockRepository_SearchPublished_Call
- type MockRepository_TranslationGroupExists_Call
- func (_c *MockRepository_TranslationGroupExists_Call) Return(b bool, err error) *MockRepository_TranslationGroupExists_Call
- func (_c *MockRepository_TranslationGroupExists_Call) Run(run func(ctx context.Context, id int)) *MockRepository_TranslationGroupExists_Call
- func (_c *MockRepository_TranslationGroupExists_Call) RunAndReturn(run func(ctx context.Context, id int) (bool, error)) *MockRepository_TranslationGroupExists_Call
- type MockRepository_Update_Call
- func (_c *MockRepository_Update_Call) Return(err error) *MockRepository_Update_Call
- func (_c *MockRepository_Update_Call) Run(run func(ctx context.Context, content1 *content.Content)) *MockRepository_Update_Call
- func (_c *MockRepository_Update_Call) RunAndReturn(run func(ctx context.Context, content1 *content.Content) error) *MockRepository_Update_Call
- type MockServiceInterface
- func (_mock *MockServiceInterface) DeleteComment(ctx context.Context, commentID int) error
- func (_mock *MockServiceInterface) DeleteOwnComment(ctx context.Context, commentID int, userID int) error
- func (_m *MockServiceInterface) EXPECT() *MockServiceInterface_Expecter
- func (_mock *MockServiceInterface) GetComment(ctx context.Context, commentID int) (*content.Comment, error)
- func (_mock *MockServiceInterface) GetCommentsByStatus(ctx context.Context, status content.CommentStatus) ([]*content.Comment, error)
- func (_mock *MockServiceInterface) GetCommentsByUserID(ctx context.Context, userID int) ([]*content.Comment, error)
- func (_mock *MockServiceInterface) GetCommentsForContent(ctx context.Context, contentID int) ([]*content.Comment, error)
- func (_mock *MockServiceInterface) GetCommentsForModeration(ctx context.Context, contentID int) ([]*content.Comment, error)
- func (_mock *MockServiceInterface) GetPublishedBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
- func (_mock *MockServiceInterface) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
- func (_mock *MockServiceInterface) SubmitComment(ctx context.Context, contentID int, userID int, ...) (*content.Comment, error)
- func (_mock *MockServiceInterface) UpdateCommentStatus(ctx context.Context, commentID int, status content.CommentStatus) error
- type MockServiceInterface_DeleteComment_Call
- func (_c *MockServiceInterface_DeleteComment_Call) Return(err error) *MockServiceInterface_DeleteComment_Call
- func (_c *MockServiceInterface_DeleteComment_Call) Run(run func(ctx context.Context, commentID int)) *MockServiceInterface_DeleteComment_Call
- func (_c *MockServiceInterface_DeleteComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) error) *MockServiceInterface_DeleteComment_Call
- type MockServiceInterface_DeleteOwnComment_Call
- func (_c *MockServiceInterface_DeleteOwnComment_Call) Return(err error) *MockServiceInterface_DeleteOwnComment_Call
- func (_c *MockServiceInterface_DeleteOwnComment_Call) Run(run func(ctx context.Context, commentID int, userID int)) *MockServiceInterface_DeleteOwnComment_Call
- func (_c *MockServiceInterface_DeleteOwnComment_Call) RunAndReturn(run func(ctx context.Context, commentID int, userID int) error) *MockServiceInterface_DeleteOwnComment_Call
- type MockServiceInterface_Expecter
- func (_e *MockServiceInterface_Expecter) DeleteComment(ctx any, commentID any) *MockServiceInterface_DeleteComment_Call
- func (_e *MockServiceInterface_Expecter) DeleteOwnComment(ctx any, commentID any, userID any) *MockServiceInterface_DeleteOwnComment_Call
- func (_e *MockServiceInterface_Expecter) GetComment(ctx any, commentID any) *MockServiceInterface_GetComment_Call
- func (_e *MockServiceInterface_Expecter) GetCommentsByStatus(ctx any, status any) *MockServiceInterface_GetCommentsByStatus_Call
- func (_e *MockServiceInterface_Expecter) GetCommentsByUserID(ctx any, userID any) *MockServiceInterface_GetCommentsByUserID_Call
- func (_e *MockServiceInterface_Expecter) GetCommentsForContent(ctx any, contentID any) *MockServiceInterface_GetCommentsForContent_Call
- func (_e *MockServiceInterface_Expecter) GetCommentsForModeration(ctx any, contentID any) *MockServiceInterface_GetCommentsForModeration_Call
- func (_e *MockServiceInterface_Expecter) GetPublishedBySlug(ctx any, slug any, language any) *MockServiceInterface_GetPublishedBySlug_Call
- func (_e *MockServiceInterface_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockServiceInterface_GetTranslations_Call
- func (_e *MockServiceInterface_Expecter) SubmitComment(ctx any, contentID any, userID any, req any) *MockServiceInterface_SubmitComment_Call
- func (_e *MockServiceInterface_Expecter) UpdateCommentStatus(ctx any, commentID any, status any) *MockServiceInterface_UpdateCommentStatus_Call
- type MockServiceInterface_GetComment_Call
- func (_c *MockServiceInterface_GetComment_Call) Return(comment *content.Comment, err error) *MockServiceInterface_GetComment_Call
- func (_c *MockServiceInterface_GetComment_Call) Run(run func(ctx context.Context, commentID int)) *MockServiceInterface_GetComment_Call
- func (_c *MockServiceInterface_GetComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) (*content.Comment, error)) *MockServiceInterface_GetComment_Call
- type MockServiceInterface_GetCommentsByStatus_Call
- func (_c *MockServiceInterface_GetCommentsByStatus_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsByStatus_Call
- func (_c *MockServiceInterface_GetCommentsByStatus_Call) Run(run func(ctx context.Context, status content.CommentStatus)) *MockServiceInterface_GetCommentsByStatus_Call
- func (_c *MockServiceInterface_GetCommentsByStatus_Call) RunAndReturn(...) *MockServiceInterface_GetCommentsByStatus_Call
- type MockServiceInterface_GetCommentsByUserID_Call
- func (_c *MockServiceInterface_GetCommentsByUserID_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsByUserID_Call
- func (_c *MockServiceInterface_GetCommentsByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockServiceInterface_GetCommentsByUserID_Call
- func (_c *MockServiceInterface_GetCommentsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*content.Comment, error)) *MockServiceInterface_GetCommentsByUserID_Call
- type MockServiceInterface_GetCommentsForContent_Call
- func (_c *MockServiceInterface_GetCommentsForContent_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsForContent_Call
- func (_c *MockServiceInterface_GetCommentsForContent_Call) Run(run func(ctx context.Context, contentID int)) *MockServiceInterface_GetCommentsForContent_Call
- func (_c *MockServiceInterface_GetCommentsForContent_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockServiceInterface_GetCommentsForContent_Call
- type MockServiceInterface_GetCommentsForModeration_Call
- func (_c *MockServiceInterface_GetCommentsForModeration_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsForModeration_Call
- func (_c *MockServiceInterface_GetCommentsForModeration_Call) Run(run func(ctx context.Context, contentID int)) *MockServiceInterface_GetCommentsForModeration_Call
- func (_c *MockServiceInterface_GetCommentsForModeration_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockServiceInterface_GetCommentsForModeration_Call
- type MockServiceInterface_GetPublishedBySlug_Call
- func (_c *MockServiceInterface_GetPublishedBySlug_Call) Return(content1 *content.Content, err error) *MockServiceInterface_GetPublishedBySlug_Call
- func (_c *MockServiceInterface_GetPublishedBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockServiceInterface_GetPublishedBySlug_Call
- func (_c *MockServiceInterface_GetPublishedBySlug_Call) RunAndReturn(...) *MockServiceInterface_GetPublishedBySlug_Call
- type MockServiceInterface_GetTranslations_Call
- func (_c *MockServiceInterface_GetTranslations_Call) Return(contents []*content.Content, err error) *MockServiceInterface_GetTranslations_Call
- func (_c *MockServiceInterface_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockServiceInterface_GetTranslations_Call
- func (_c *MockServiceInterface_GetTranslations_Call) RunAndReturn(...) *MockServiceInterface_GetTranslations_Call
- type MockServiceInterface_SubmitComment_Call
- func (_c *MockServiceInterface_SubmitComment_Call) Return(comment *content.Comment, err error) *MockServiceInterface_SubmitComment_Call
- func (_c *MockServiceInterface_SubmitComment_Call) Run(run func(ctx context.Context, contentID int, userID int, ...)) *MockServiceInterface_SubmitComment_Call
- func (_c *MockServiceInterface_SubmitComment_Call) RunAndReturn(...) *MockServiceInterface_SubmitComment_Call
- type MockServiceInterface_UpdateCommentStatus_Call
- func (_c *MockServiceInterface_UpdateCommentStatus_Call) Return(err error) *MockServiceInterface_UpdateCommentStatus_Call
- func (_c *MockServiceInterface_UpdateCommentStatus_Call) Run(run func(ctx context.Context, commentID int, status content.CommentStatus)) *MockServiceInterface_UpdateCommentStatus_Call
- func (_c *MockServiceInterface_UpdateCommentStatus_Call) RunAndReturn(...) *MockServiceInterface_UpdateCommentStatus_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommentRepository ¶
MockCommentRepository is an autogenerated mock type for the CommentRepository type
func NewMockCommentRepository ¶
func NewMockCommentRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockCommentRepository
NewMockCommentRepository creates a new instance of MockCommentRepository. 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 (*MockCommentRepository) Create ¶
Create provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) Delete ¶
func (_mock *MockCommentRepository) Delete(ctx context.Context, id int) error
Delete provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) DeleteByUserID ¶
func (_mock *MockCommentRepository) DeleteByUserID(ctx context.Context, userID int) error
DeleteByUserID provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) EXPECT ¶
func (_m *MockCommentRepository) EXPECT() *MockCommentRepository_Expecter
func (*MockCommentRepository) GetByContentID ¶
func (_mock *MockCommentRepository) GetByContentID(ctx context.Context, contentID int) ([]*content.Comment, error)
GetByContentID provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) GetByContentIDForModeration ¶
func (_mock *MockCommentRepository) GetByContentIDForModeration(ctx context.Context, contentID int) ([]*content.Comment, error)
GetByContentIDForModeration provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) GetByID ¶
GetByID provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) GetByStatus ¶ added in v0.3.0
func (_mock *MockCommentRepository) GetByStatus(ctx context.Context, status content.CommentStatus) ([]*content.Comment, error)
GetByStatus provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) GetByUserID ¶
func (_mock *MockCommentRepository) GetByUserID(ctx context.Context, userID int) ([]*content.Comment, error)
GetByUserID provides a mock function for the type MockCommentRepository
func (*MockCommentRepository) UpdateStatus ¶
func (_mock *MockCommentRepository) UpdateStatus(ctx context.Context, id int, status content.CommentStatus) error
UpdateStatus provides a mock function for the type MockCommentRepository
type MockCommentRepository_Create_Call ¶
MockCommentRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockCommentRepository_Create_Call) Return ¶
func (_c *MockCommentRepository_Create_Call) Return(err error) *MockCommentRepository_Create_Call
func (*MockCommentRepository_Create_Call) Run ¶
func (_c *MockCommentRepository_Create_Call) Run(run func(ctx context.Context, comment *content.Comment)) *MockCommentRepository_Create_Call
func (*MockCommentRepository_Create_Call) RunAndReturn ¶
func (_c *MockCommentRepository_Create_Call) RunAndReturn(run func(ctx context.Context, comment *content.Comment) error) *MockCommentRepository_Create_Call
type MockCommentRepository_DeleteByUserID_Call ¶
MockCommentRepository_DeleteByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByUserID'
func (*MockCommentRepository_DeleteByUserID_Call) Return ¶
func (_c *MockCommentRepository_DeleteByUserID_Call) Return(err error) *MockCommentRepository_DeleteByUserID_Call
func (*MockCommentRepository_DeleteByUserID_Call) Run ¶
func (_c *MockCommentRepository_DeleteByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockCommentRepository_DeleteByUserID_Call
func (*MockCommentRepository_DeleteByUserID_Call) RunAndReturn ¶
func (_c *MockCommentRepository_DeleteByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockCommentRepository_DeleteByUserID_Call
type MockCommentRepository_Delete_Call ¶
MockCommentRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockCommentRepository_Delete_Call) Return ¶
func (_c *MockCommentRepository_Delete_Call) Return(err error) *MockCommentRepository_Delete_Call
func (*MockCommentRepository_Delete_Call) Run ¶
func (_c *MockCommentRepository_Delete_Call) Run(run func(ctx context.Context, id int)) *MockCommentRepository_Delete_Call
func (*MockCommentRepository_Delete_Call) RunAndReturn ¶
func (_c *MockCommentRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id int) error) *MockCommentRepository_Delete_Call
type MockCommentRepository_Expecter ¶
type MockCommentRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCommentRepository_Expecter) Create ¶
func (_e *MockCommentRepository_Expecter) Create(ctx any, comment any) *MockCommentRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- comment *content.Comment
func (*MockCommentRepository_Expecter) Delete ¶
func (_e *MockCommentRepository_Expecter) Delete(ctx any, id any) *MockCommentRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockCommentRepository_Expecter) DeleteByUserID ¶
func (_e *MockCommentRepository_Expecter) DeleteByUserID(ctx any, userID any) *MockCommentRepository_DeleteByUserID_Call
DeleteByUserID is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockCommentRepository_Expecter) GetByContentID ¶
func (_e *MockCommentRepository_Expecter) GetByContentID(ctx any, contentID any) *MockCommentRepository_GetByContentID_Call
GetByContentID is a helper method to define mock.On call
- ctx context.Context
- contentID int
func (*MockCommentRepository_Expecter) GetByContentIDForModeration ¶
func (_e *MockCommentRepository_Expecter) GetByContentIDForModeration(ctx any, contentID any) *MockCommentRepository_GetByContentIDForModeration_Call
GetByContentIDForModeration is a helper method to define mock.On call
- ctx context.Context
- contentID int
func (*MockCommentRepository_Expecter) GetByID ¶
func (_e *MockCommentRepository_Expecter) GetByID(ctx any, id any) *MockCommentRepository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockCommentRepository_Expecter) GetByStatus ¶ added in v0.3.0
func (_e *MockCommentRepository_Expecter) GetByStatus(ctx any, status any) *MockCommentRepository_GetByStatus_Call
GetByStatus is a helper method to define mock.On call
- ctx context.Context
- status content.CommentStatus
func (*MockCommentRepository_Expecter) GetByUserID ¶
func (_e *MockCommentRepository_Expecter) GetByUserID(ctx any, userID any) *MockCommentRepository_GetByUserID_Call
GetByUserID is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockCommentRepository_Expecter) UpdateStatus ¶
func (_e *MockCommentRepository_Expecter) UpdateStatus(ctx any, id any, status any) *MockCommentRepository_UpdateStatus_Call
UpdateStatus is a helper method to define mock.On call
- ctx context.Context
- id int
- status content.CommentStatus
type MockCommentRepository_GetByContentIDForModeration_Call ¶
MockCommentRepository_GetByContentIDForModeration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByContentIDForModeration'
func (*MockCommentRepository_GetByContentIDForModeration_Call) Return ¶
func (_c *MockCommentRepository_GetByContentIDForModeration_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByContentIDForModeration_Call
func (*MockCommentRepository_GetByContentIDForModeration_Call) Run ¶
func (_c *MockCommentRepository_GetByContentIDForModeration_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentRepository_GetByContentIDForModeration_Call
func (*MockCommentRepository_GetByContentIDForModeration_Call) RunAndReturn ¶
func (_c *MockCommentRepository_GetByContentIDForModeration_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockCommentRepository_GetByContentIDForModeration_Call
type MockCommentRepository_GetByContentID_Call ¶
MockCommentRepository_GetByContentID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByContentID'
func (*MockCommentRepository_GetByContentID_Call) Return ¶
func (_c *MockCommentRepository_GetByContentID_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByContentID_Call
func (*MockCommentRepository_GetByContentID_Call) Run ¶
func (_c *MockCommentRepository_GetByContentID_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentRepository_GetByContentID_Call
func (*MockCommentRepository_GetByContentID_Call) RunAndReturn ¶
func (_c *MockCommentRepository_GetByContentID_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockCommentRepository_GetByContentID_Call
type MockCommentRepository_GetByID_Call ¶
MockCommentRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockCommentRepository_GetByID_Call) Return ¶
func (_c *MockCommentRepository_GetByID_Call) Return(comment *content.Comment, err error) *MockCommentRepository_GetByID_Call
func (*MockCommentRepository_GetByID_Call) Run ¶
func (_c *MockCommentRepository_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockCommentRepository_GetByID_Call
func (*MockCommentRepository_GetByID_Call) RunAndReturn ¶
func (_c *MockCommentRepository_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*content.Comment, error)) *MockCommentRepository_GetByID_Call
type MockCommentRepository_GetByStatus_Call ¶ added in v0.3.0
MockCommentRepository_GetByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByStatus'
func (*MockCommentRepository_GetByStatus_Call) Return ¶ added in v0.3.0
func (_c *MockCommentRepository_GetByStatus_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByStatus_Call
func (*MockCommentRepository_GetByStatus_Call) Run ¶ added in v0.3.0
func (_c *MockCommentRepository_GetByStatus_Call) Run(run func(ctx context.Context, status content.CommentStatus)) *MockCommentRepository_GetByStatus_Call
func (*MockCommentRepository_GetByStatus_Call) RunAndReturn ¶ added in v0.3.0
func (_c *MockCommentRepository_GetByStatus_Call) RunAndReturn(run func(ctx context.Context, status content.CommentStatus) ([]*content.Comment, error)) *MockCommentRepository_GetByStatus_Call
type MockCommentRepository_GetByUserID_Call ¶
MockCommentRepository_GetByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByUserID'
func (*MockCommentRepository_GetByUserID_Call) Return ¶
func (_c *MockCommentRepository_GetByUserID_Call) Return(comments []*content.Comment, err error) *MockCommentRepository_GetByUserID_Call
func (*MockCommentRepository_GetByUserID_Call) Run ¶
func (_c *MockCommentRepository_GetByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockCommentRepository_GetByUserID_Call
func (*MockCommentRepository_GetByUserID_Call) RunAndReturn ¶
func (_c *MockCommentRepository_GetByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*content.Comment, error)) *MockCommentRepository_GetByUserID_Call
type MockCommentRepository_UpdateStatus_Call ¶
MockCommentRepository_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'
func (*MockCommentRepository_UpdateStatus_Call) Return ¶
func (_c *MockCommentRepository_UpdateStatus_Call) Return(err error) *MockCommentRepository_UpdateStatus_Call
func (*MockCommentRepository_UpdateStatus_Call) Run ¶
func (_c *MockCommentRepository_UpdateStatus_Call) Run(run func(ctx context.Context, id int, status content.CommentStatus)) *MockCommentRepository_UpdateStatus_Call
func (*MockCommentRepository_UpdateStatus_Call) RunAndReturn ¶
func (_c *MockCommentRepository_UpdateStatus_Call) RunAndReturn(run func(ctx context.Context, id int, status content.CommentStatus) error) *MockCommentRepository_UpdateStatus_Call
type MockHookExecutor ¶
MockHookExecutor is an autogenerated mock type for the HookExecutor type
func NewMockHookExecutor ¶
func NewMockHookExecutor(t interface {
mock.TestingT
Cleanup(func())
}) *MockHookExecutor
NewMockHookExecutor creates a new instance of MockHookExecutor. 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 (*MockHookExecutor) EXPECT ¶
func (_m *MockHookExecutor) EXPECT() *MockHookExecutor_Expecter
type MockHookExecutor_Execute_Call ¶
MockHookExecutor_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockHookExecutor_Execute_Call) Return ¶
func (_c *MockHookExecutor_Execute_Call) Return(bytes []byte, err error) *MockHookExecutor_Execute_Call
func (*MockHookExecutor_Execute_Call) Run ¶
func (_c *MockHookExecutor_Execute_Call) Run(run func(ctx context.Context, hookName plugin.HookName, data []byte)) *MockHookExecutor_Execute_Call
func (*MockHookExecutor_Execute_Call) RunAndReturn ¶
func (_c *MockHookExecutor_Execute_Call) RunAndReturn(run func(ctx context.Context, hookName plugin.HookName, data []byte) ([]byte, error)) *MockHookExecutor_Execute_Call
type MockHookExecutor_Expecter ¶
type MockHookExecutor_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHookExecutor_Expecter) Execute ¶
func (_e *MockHookExecutor_Expecter) Execute(ctx any, hookName any, data any) *MockHookExecutor_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- hookName plugin.HookName
- data []byte
type MockPostTypeServiceInterface ¶
MockPostTypeServiceInterface is an autogenerated mock type for the PostTypeServiceInterface type
func NewMockPostTypeServiceInterface ¶
func NewMockPostTypeServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockPostTypeServiceInterface
NewMockPostTypeServiceInterface creates a new instance of MockPostTypeServiceInterface. 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 (*MockPostTypeServiceInterface) EXPECT ¶
func (_m *MockPostTypeServiceInterface) EXPECT() *MockPostTypeServiceInterface_Expecter
func (*MockPostTypeServiceInterface) GetBySlug ¶
func (_mock *MockPostTypeServiceInterface) GetBySlug(slug string) (content.PostType, error)
GetBySlug provides a mock function for the type MockPostTypeServiceInterface
func (*MockPostTypeServiceInterface) GetFieldsByPostType ¶
func (_mock *MockPostTypeServiceInterface) GetFieldsByPostType(slug string) ([]customfield.FieldSchema, error)
GetFieldsByPostType provides a mock function for the type MockPostTypeServiceInterface
func (*MockPostTypeServiceInterface) GetSystemFieldsByPostType ¶
func (_mock *MockPostTypeServiceInterface) GetSystemFieldsByPostType(slug string) ([]customfield.FieldSchema, error)
GetSystemFieldsByPostType provides a mock function for the type MockPostTypeServiceInterface
type MockPostTypeServiceInterface_Expecter ¶
type MockPostTypeServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPostTypeServiceInterface_Expecter) GetBySlug ¶
func (_e *MockPostTypeServiceInterface_Expecter) GetBySlug(slug any) *MockPostTypeServiceInterface_GetBySlug_Call
GetBySlug is a helper method to define mock.On call
- slug string
func (*MockPostTypeServiceInterface_Expecter) GetFieldsByPostType ¶
func (_e *MockPostTypeServiceInterface_Expecter) GetFieldsByPostType(slug any) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
GetFieldsByPostType is a helper method to define mock.On call
- slug string
func (*MockPostTypeServiceInterface_Expecter) GetSystemFieldsByPostType ¶
func (_e *MockPostTypeServiceInterface_Expecter) GetSystemFieldsByPostType(slug any) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
GetSystemFieldsByPostType is a helper method to define mock.On call
- slug string
type MockPostTypeServiceInterface_GetBySlug_Call ¶
MockPostTypeServiceInterface_GetBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBySlug'
func (*MockPostTypeServiceInterface_GetBySlug_Call) Return ¶
func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Return(postType content.PostType, err error) *MockPostTypeServiceInterface_GetBySlug_Call
func (*MockPostTypeServiceInterface_GetBySlug_Call) Run ¶
func (_c *MockPostTypeServiceInterface_GetBySlug_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetBySlug_Call
func (*MockPostTypeServiceInterface_GetBySlug_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_GetBySlug_Call) RunAndReturn(run func(slug string) (content.PostType, error)) *MockPostTypeServiceInterface_GetBySlug_Call
type MockPostTypeServiceInterface_GetFieldsByPostType_Call ¶
MockPostTypeServiceInterface_GetFieldsByPostType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldsByPostType'
func (*MockPostTypeServiceInterface_GetFieldsByPostType_Call) Return ¶
func (_c *MockPostTypeServiceInterface_GetFieldsByPostType_Call) Return(fieldSchemas []customfield.FieldSchema, err error) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
func (*MockPostTypeServiceInterface_GetFieldsByPostType_Call) Run ¶
func (_c *MockPostTypeServiceInterface_GetFieldsByPostType_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
func (*MockPostTypeServiceInterface_GetFieldsByPostType_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_GetFieldsByPostType_Call) RunAndReturn(run func(slug string) ([]customfield.FieldSchema, error)) *MockPostTypeServiceInterface_GetFieldsByPostType_Call
type MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call ¶
MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSystemFieldsByPostType'
func (*MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) Return ¶
func (_c *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) Return(fieldSchemas []customfield.FieldSchema, err error) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
func (*MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) Run ¶
func (_c *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) Run(run func(slug string)) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
func (*MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) RunAndReturn ¶
func (_c *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) RunAndReturn(run func(slug string) ([]customfield.FieldSchema, error)) *MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call
type MockRepository ¶
MockRepository is an autogenerated mock type for the Repository type
func NewMockRepository ¶
func NewMockRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockRepository
NewMockRepository creates a new instance of MockRepository. 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 (*MockRepository) AuthorExists ¶
AuthorExists provides a mock function for the type MockRepository
func (*MockRepository) CheckSlugUnique ¶
func (_mock *MockRepository) CheckSlugUnique(ctx context.Context, slug string, language string) (bool, error)
CheckSlugUnique provides a mock function for the type MockRepository
func (*MockRepository) DeleteByID ¶
func (_mock *MockRepository) DeleteByID(ctx context.Context, id int) error
DeleteByID provides a mock function for the type MockRepository
func (*MockRepository) EXPECT ¶
func (_m *MockRepository) EXPECT() *MockRepository_Expecter
func (*MockRepository) GetAll ¶
func (_mock *MockRepository) GetAll(ctx context.Context, limit int, offset int) ([]*content.Content, error)
GetAll provides a mock function for the type MockRepository
func (*MockRepository) GetBySlug ¶
func (_mock *MockRepository) GetBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
GetBySlug provides a mock function for the type MockRepository
func (*MockRepository) GetByUser ¶
func (_mock *MockRepository) GetByUser(ctx context.Context, userID int, limit int, offset int) ([]*content.Content, error)
GetByUser provides a mock function for the type MockRepository
func (*MockRepository) GetLatestByPostType ¶ added in v0.4.0
func (_mock *MockRepository) GetLatestByPostType(ctx context.Context, excludeID int, postType string, language string, limit int) ([]*content.Content, error)
GetLatestByPostType provides a mock function for the type MockRepository
func (*MockRepository) GetPublished ¶
func (_mock *MockRepository) GetPublished(ctx context.Context, limit int, offset int) ([]*content.Content, error)
GetPublished provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedArchive ¶ added in v0.6.0
func (_mock *MockRepository) GetPublishedArchive(ctx context.Context, postType string, language string) ([]*content.ArchiveMonth, error)
GetPublishedArchive provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedAuthors ¶ added in v0.5.0
func (_mock *MockRepository) GetPublishedAuthors(ctx context.Context, limit int, offset int) ([]*content.PublishedAuthor, error)
GetPublishedAuthors provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedByAuthorUsername ¶
func (_mock *MockRepository) GetPublishedByAuthorUsername(ctx context.Context, username string, language string, limit int, offset int) ([]*content.Content, error)
GetPublishedByAuthorUsername provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedByPostType ¶
func (_mock *MockRepository) GetPublishedByPostType(ctx context.Context, postType string, language string, year int, month int, limit int, offset int) ([]*content.Content, error)
GetPublishedByPostType provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedBySlug ¶
func (_mock *MockRepository) GetPublishedBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
GetPublishedBySlug provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedBySlugAny ¶
func (_mock *MockRepository) GetPublishedBySlugAny(ctx context.Context, slug string) (*content.Content, error)
GetPublishedBySlugAny provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedByTag ¶
func (_mock *MockRepository) GetPublishedByTag(ctx context.Context, tag string, language string, year int, month int, limit int, offset int) ([]*content.Content, error)
GetPublishedByTag provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedCustomPostTypes ¶
func (_mock *MockRepository) GetPublishedCustomPostTypes(ctx context.Context) ([]string, error)
GetPublishedCustomPostTypes provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedPages ¶
GetPublishedPages provides a mock function for the type MockRepository
func (*MockRepository) GetPublishedTags ¶ added in v0.5.0
func (_mock *MockRepository) GetPublishedTags(ctx context.Context) ([]string, error)
GetPublishedTags provides a mock function for the type MockRepository
func (*MockRepository) GetRelatedByTags ¶ added in v0.4.0
func (_mock *MockRepository) GetRelatedByTags(ctx context.Context, excludeID int, tags []string, postType string, language string, limit int) ([]*content.Content, error)
GetRelatedByTags provides a mock function for the type MockRepository
func (*MockRepository) GetTranslations ¶
func (_mock *MockRepository) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
GetTranslations provides a mock function for the type MockRepository
func (*MockRepository) ListByCursor ¶
func (_mock *MockRepository) ListByCursor(ctx context.Context, userID int, limit int, beforeID int, filters content.ContentFilters) ([]*content.Content, error)
ListByCursor provides a mock function for the type MockRepository
func (*MockRepository) ListByFilters ¶
func (_mock *MockRepository) ListByFilters(ctx context.Context, userID int, filters content.ContentFilters) ([]*content.Content, error)
ListByFilters provides a mock function for the type MockRepository
func (*MockRepository) SearchPublished ¶
func (_mock *MockRepository) SearchPublished(ctx context.Context, query string, limit int) ([]*content.Content, error)
SearchPublished provides a mock function for the type MockRepository
func (*MockRepository) TranslationGroupExists ¶
TranslationGroupExists provides a mock function for the type MockRepository
type MockRepository_AuthorExists_Call ¶
MockRepository_AuthorExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthorExists'
func (*MockRepository_AuthorExists_Call) Return ¶
func (_c *MockRepository_AuthorExists_Call) Return(b bool, err error) *MockRepository_AuthorExists_Call
func (*MockRepository_AuthorExists_Call) Run ¶
func (_c *MockRepository_AuthorExists_Call) Run(run func(ctx context.Context, username string)) *MockRepository_AuthorExists_Call
func (*MockRepository_AuthorExists_Call) RunAndReturn ¶
func (_c *MockRepository_AuthorExists_Call) RunAndReturn(run func(ctx context.Context, username string) (bool, error)) *MockRepository_AuthorExists_Call
type MockRepository_CheckSlugUnique_Call ¶
MockRepository_CheckSlugUnique_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckSlugUnique'
func (*MockRepository_CheckSlugUnique_Call) Return ¶
func (_c *MockRepository_CheckSlugUnique_Call) Return(b bool, err error) *MockRepository_CheckSlugUnique_Call
func (*MockRepository_CheckSlugUnique_Call) Run ¶
func (_c *MockRepository_CheckSlugUnique_Call) Run(run func(ctx context.Context, slug string, language string)) *MockRepository_CheckSlugUnique_Call
func (*MockRepository_CheckSlugUnique_Call) RunAndReturn ¶
func (_c *MockRepository_CheckSlugUnique_Call) RunAndReturn(run func(ctx context.Context, slug string, language string) (bool, error)) *MockRepository_CheckSlugUnique_Call
type MockRepository_Create_Call ¶
MockRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockRepository_Create_Call) Return ¶
func (_c *MockRepository_Create_Call) Return(err error) *MockRepository_Create_Call
func (*MockRepository_Create_Call) Run ¶
func (_c *MockRepository_Create_Call) Run(run func(ctx context.Context, content1 *content.Content)) *MockRepository_Create_Call
func (*MockRepository_Create_Call) RunAndReturn ¶
func (_c *MockRepository_Create_Call) RunAndReturn(run func(ctx context.Context, content1 *content.Content) error) *MockRepository_Create_Call
type MockRepository_DeleteByID_Call ¶
MockRepository_DeleteByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByID'
func (*MockRepository_DeleteByID_Call) Return ¶
func (_c *MockRepository_DeleteByID_Call) Return(err error) *MockRepository_DeleteByID_Call
func (*MockRepository_DeleteByID_Call) Run ¶
func (_c *MockRepository_DeleteByID_Call) Run(run func(ctx context.Context, id int)) *MockRepository_DeleteByID_Call
func (*MockRepository_DeleteByID_Call) RunAndReturn ¶
func (_c *MockRepository_DeleteByID_Call) RunAndReturn(run func(ctx context.Context, id int) error) *MockRepository_DeleteByID_Call
type MockRepository_Delete_Call ¶
MockRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockRepository_Delete_Call) Return ¶
func (_c *MockRepository_Delete_Call) Return(err error) *MockRepository_Delete_Call
func (*MockRepository_Delete_Call) Run ¶
func (_c *MockRepository_Delete_Call) Run(run func(ctx context.Context, id int, userID int)) *MockRepository_Delete_Call
func (*MockRepository_Delete_Call) RunAndReturn ¶
func (_c *MockRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id int, userID int) error) *MockRepository_Delete_Call
type MockRepository_Expecter ¶
type MockRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepository_Expecter) AuthorExists ¶
func (_e *MockRepository_Expecter) AuthorExists(ctx any, username any) *MockRepository_AuthorExists_Call
AuthorExists is a helper method to define mock.On call
- ctx context.Context
- username string
func (*MockRepository_Expecter) CheckSlugUnique ¶
func (_e *MockRepository_Expecter) CheckSlugUnique(ctx any, slug any, language any) *MockRepository_CheckSlugUnique_Call
CheckSlugUnique is a helper method to define mock.On call
- ctx context.Context
- slug string
- language string
func (*MockRepository_Expecter) Create ¶
func (_e *MockRepository_Expecter) Create(ctx any, content1 any) *MockRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- content1 *content.Content
func (*MockRepository_Expecter) Delete ¶
func (_e *MockRepository_Expecter) Delete(ctx any, id any, userID any) *MockRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id int
- userID int
func (*MockRepository_Expecter) DeleteByID ¶
func (_e *MockRepository_Expecter) DeleteByID(ctx any, id any) *MockRepository_DeleteByID_Call
DeleteByID is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockRepository_Expecter) GetAll ¶
func (_e *MockRepository_Expecter) GetAll(ctx any, limit any, offset any) *MockRepository_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockRepository_Expecter) GetByID ¶
func (_e *MockRepository_Expecter) GetByID(ctx any, id any) *MockRepository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockRepository_Expecter) GetBySlug ¶
func (_e *MockRepository_Expecter) GetBySlug(ctx any, slug any, language any) *MockRepository_GetBySlug_Call
GetBySlug is a helper method to define mock.On call
- ctx context.Context
- slug string
- language string
func (*MockRepository_Expecter) GetByUser ¶
func (_e *MockRepository_Expecter) GetByUser(ctx any, userID any, limit any, offset any) *MockRepository_GetByUser_Call
GetByUser is a helper method to define mock.On call
- ctx context.Context
- userID int
- limit int
- offset int
func (*MockRepository_Expecter) GetLatestByPostType ¶ added in v0.4.0
func (_e *MockRepository_Expecter) GetLatestByPostType(ctx any, excludeID any, postType any, language any, limit any) *MockRepository_GetLatestByPostType_Call
GetLatestByPostType is a helper method to define mock.On call
- ctx context.Context
- excludeID int
- postType string
- language string
- limit int
func (*MockRepository_Expecter) GetPublished ¶
func (_e *MockRepository_Expecter) GetPublished(ctx any, limit any, offset any) *MockRepository_GetPublished_Call
GetPublished is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockRepository_Expecter) GetPublishedArchive ¶ added in v0.6.0
func (_e *MockRepository_Expecter) GetPublishedArchive(ctx any, postType any, language any) *MockRepository_GetPublishedArchive_Call
GetPublishedArchive is a helper method to define mock.On call
- ctx context.Context
- postType string
- language string
func (*MockRepository_Expecter) GetPublishedAuthors ¶ added in v0.5.0
func (_e *MockRepository_Expecter) GetPublishedAuthors(ctx any, limit any, offset any) *MockRepository_GetPublishedAuthors_Call
GetPublishedAuthors is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockRepository_Expecter) GetPublishedByAuthorUsername ¶
func (_e *MockRepository_Expecter) GetPublishedByAuthorUsername(ctx any, username any, language any, limit any, offset any) *MockRepository_GetPublishedByAuthorUsername_Call
GetPublishedByAuthorUsername is a helper method to define mock.On call
- ctx context.Context
- username string
- language string
- limit int
- offset int
func (*MockRepository_Expecter) GetPublishedByPostType ¶
func (_e *MockRepository_Expecter) GetPublishedByPostType(ctx any, postType any, language any, year any, month any, limit any, offset any) *MockRepository_GetPublishedByPostType_Call
GetPublishedByPostType is a helper method to define mock.On call
- ctx context.Context
- postType string
- language string
- year int
- month int
- limit int
- offset int
func (*MockRepository_Expecter) GetPublishedBySlug ¶
func (_e *MockRepository_Expecter) GetPublishedBySlug(ctx any, slug any, language any) *MockRepository_GetPublishedBySlug_Call
GetPublishedBySlug is a helper method to define mock.On call
- ctx context.Context
- slug string
- language string
func (*MockRepository_Expecter) GetPublishedBySlugAny ¶
func (_e *MockRepository_Expecter) GetPublishedBySlugAny(ctx any, slug any) *MockRepository_GetPublishedBySlugAny_Call
GetPublishedBySlugAny is a helper method to define mock.On call
- ctx context.Context
- slug string
func (*MockRepository_Expecter) GetPublishedByTag ¶
func (_e *MockRepository_Expecter) GetPublishedByTag(ctx any, tag any, language any, year any, month any, limit any, offset any) *MockRepository_GetPublishedByTag_Call
GetPublishedByTag is a helper method to define mock.On call
- ctx context.Context
- tag string
- language string
- year int
- month int
- limit int
- offset int
func (*MockRepository_Expecter) GetPublishedCustomPostTypes ¶
func (_e *MockRepository_Expecter) GetPublishedCustomPostTypes(ctx any) *MockRepository_GetPublishedCustomPostTypes_Call
GetPublishedCustomPostTypes is a helper method to define mock.On call
- ctx context.Context
func (*MockRepository_Expecter) GetPublishedPages ¶
func (_e *MockRepository_Expecter) GetPublishedPages(ctx any) *MockRepository_GetPublishedPages_Call
GetPublishedPages is a helper method to define mock.On call
- ctx context.Context
func (*MockRepository_Expecter) GetPublishedTags ¶ added in v0.5.0
func (_e *MockRepository_Expecter) GetPublishedTags(ctx any) *MockRepository_GetPublishedTags_Call
GetPublishedTags is a helper method to define mock.On call
- ctx context.Context
func (*MockRepository_Expecter) GetRelatedByTags ¶ added in v0.4.0
func (_e *MockRepository_Expecter) GetRelatedByTags(ctx any, excludeID any, tags any, postType any, language any, limit any) *MockRepository_GetRelatedByTags_Call
GetRelatedByTags is a helper method to define mock.On call
- ctx context.Context
- excludeID int
- tags []string
- postType string
- language string
- limit int
func (*MockRepository_Expecter) GetTranslations ¶
func (_e *MockRepository_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockRepository_GetTranslations_Call
GetTranslations is a helper method to define mock.On call
- ctx context.Context
- translationGroupID int
- excludeID int
func (*MockRepository_Expecter) ListByCursor ¶
func (_e *MockRepository_Expecter) ListByCursor(ctx any, userID any, limit any, beforeID any, filters any) *MockRepository_ListByCursor_Call
ListByCursor is a helper method to define mock.On call
- ctx context.Context
- userID int
- limit int
- beforeID int
- filters content.ContentFilters
func (*MockRepository_Expecter) ListByFilters ¶
func (_e *MockRepository_Expecter) ListByFilters(ctx any, userID any, filters any) *MockRepository_ListByFilters_Call
ListByFilters is a helper method to define mock.On call
- ctx context.Context
- userID int
- filters content.ContentFilters
func (*MockRepository_Expecter) SearchPublished ¶
func (_e *MockRepository_Expecter) SearchPublished(ctx any, query any, limit any) *MockRepository_SearchPublished_Call
SearchPublished is a helper method to define mock.On call
- ctx context.Context
- query string
- limit int
func (*MockRepository_Expecter) TranslationGroupExists ¶
func (_e *MockRepository_Expecter) TranslationGroupExists(ctx any, id any) *MockRepository_TranslationGroupExists_Call
TranslationGroupExists is a helper method to define mock.On call
- ctx context.Context
- id int
func (*MockRepository_Expecter) Update ¶
func (_e *MockRepository_Expecter) Update(ctx any, content1 any) *MockRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- content1 *content.Content
type MockRepository_GetAll_Call ¶
MockRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockRepository_GetAll_Call) Return ¶
func (_c *MockRepository_GetAll_Call) Return(contents []*content.Content, err error) *MockRepository_GetAll_Call
func (*MockRepository_GetAll_Call) Run ¶
func (_c *MockRepository_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockRepository_GetAll_Call
func (*MockRepository_GetAll_Call) RunAndReturn ¶
func (_c *MockRepository_GetAll_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*content.Content, error)) *MockRepository_GetAll_Call
type MockRepository_GetByID_Call ¶
MockRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockRepository_GetByID_Call) Return ¶
func (_c *MockRepository_GetByID_Call) Return(content1 *content.Content, err error) *MockRepository_GetByID_Call
func (*MockRepository_GetByID_Call) Run ¶
func (_c *MockRepository_GetByID_Call) Run(run func(ctx context.Context, id int)) *MockRepository_GetByID_Call
func (*MockRepository_GetByID_Call) RunAndReturn ¶
func (_c *MockRepository_GetByID_Call) RunAndReturn(run func(ctx context.Context, id int) (*content.Content, error)) *MockRepository_GetByID_Call
type MockRepository_GetBySlug_Call ¶
MockRepository_GetBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBySlug'
func (*MockRepository_GetBySlug_Call) Return ¶
func (_c *MockRepository_GetBySlug_Call) Return(content1 *content.Content, err error) *MockRepository_GetBySlug_Call
func (*MockRepository_GetBySlug_Call) Run ¶
func (_c *MockRepository_GetBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockRepository_GetBySlug_Call
func (*MockRepository_GetBySlug_Call) RunAndReturn ¶
func (_c *MockRepository_GetBySlug_Call) RunAndReturn(run func(ctx context.Context, slug string, language string) (*content.Content, error)) *MockRepository_GetBySlug_Call
type MockRepository_GetByUser_Call ¶
MockRepository_GetByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByUser'
func (*MockRepository_GetByUser_Call) Return ¶
func (_c *MockRepository_GetByUser_Call) Return(contents []*content.Content, err error) *MockRepository_GetByUser_Call
func (*MockRepository_GetByUser_Call) Run ¶
func (_c *MockRepository_GetByUser_Call) Run(run func(ctx context.Context, userID int, limit int, offset int)) *MockRepository_GetByUser_Call
func (*MockRepository_GetByUser_Call) RunAndReturn ¶
func (_c *MockRepository_GetByUser_Call) RunAndReturn(run func(ctx context.Context, userID int, limit int, offset int) ([]*content.Content, error)) *MockRepository_GetByUser_Call
type MockRepository_GetLatestByPostType_Call ¶ added in v0.4.0
MockRepository_GetLatestByPostType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestByPostType'
func (*MockRepository_GetLatestByPostType_Call) Return ¶ added in v0.4.0
func (_c *MockRepository_GetLatestByPostType_Call) Return(contents []*content.Content, err error) *MockRepository_GetLatestByPostType_Call
func (*MockRepository_GetLatestByPostType_Call) Run ¶ added in v0.4.0
func (_c *MockRepository_GetLatestByPostType_Call) Run(run func(ctx context.Context, excludeID int, postType string, language string, limit int)) *MockRepository_GetLatestByPostType_Call
func (*MockRepository_GetLatestByPostType_Call) RunAndReturn ¶ added in v0.4.0
type MockRepository_GetPublishedArchive_Call ¶ added in v0.6.0
MockRepository_GetPublishedArchive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedArchive'
func (*MockRepository_GetPublishedArchive_Call) Return ¶ added in v0.6.0
func (_c *MockRepository_GetPublishedArchive_Call) Return(archiveMonths []*content.ArchiveMonth, err error) *MockRepository_GetPublishedArchive_Call
func (*MockRepository_GetPublishedArchive_Call) Run ¶ added in v0.6.0
func (_c *MockRepository_GetPublishedArchive_Call) Run(run func(ctx context.Context, postType string, language string)) *MockRepository_GetPublishedArchive_Call
func (*MockRepository_GetPublishedArchive_Call) RunAndReturn ¶ added in v0.6.0
func (_c *MockRepository_GetPublishedArchive_Call) RunAndReturn(run func(ctx context.Context, postType string, language string) ([]*content.ArchiveMonth, error)) *MockRepository_GetPublishedArchive_Call
type MockRepository_GetPublishedAuthors_Call ¶ added in v0.5.0
MockRepository_GetPublishedAuthors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedAuthors'
func (*MockRepository_GetPublishedAuthors_Call) Return ¶ added in v0.5.0
func (_c *MockRepository_GetPublishedAuthors_Call) Return(publishedAuthors []*content.PublishedAuthor, err error) *MockRepository_GetPublishedAuthors_Call
func (*MockRepository_GetPublishedAuthors_Call) Run ¶ added in v0.5.0
func (_c *MockRepository_GetPublishedAuthors_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockRepository_GetPublishedAuthors_Call
func (*MockRepository_GetPublishedAuthors_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockRepository_GetPublishedAuthors_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*content.PublishedAuthor, error)) *MockRepository_GetPublishedAuthors_Call
type MockRepository_GetPublishedByAuthorUsername_Call ¶
MockRepository_GetPublishedByAuthorUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedByAuthorUsername'
func (*MockRepository_GetPublishedByAuthorUsername_Call) Return ¶
func (_c *MockRepository_GetPublishedByAuthorUsername_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedByAuthorUsername_Call
func (*MockRepository_GetPublishedByAuthorUsername_Call) Run ¶
func (_c *MockRepository_GetPublishedByAuthorUsername_Call) Run(run func(ctx context.Context, username string, language string, limit int, offset int)) *MockRepository_GetPublishedByAuthorUsername_Call
func (*MockRepository_GetPublishedByAuthorUsername_Call) RunAndReturn ¶
type MockRepository_GetPublishedByPostType_Call ¶
MockRepository_GetPublishedByPostType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedByPostType'
func (*MockRepository_GetPublishedByPostType_Call) Return ¶
func (_c *MockRepository_GetPublishedByPostType_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedByPostType_Call
func (*MockRepository_GetPublishedByPostType_Call) Run ¶
func (_c *MockRepository_GetPublishedByPostType_Call) Run(run func(ctx context.Context, postType string, language string, year int, month int, limit int, offset int)) *MockRepository_GetPublishedByPostType_Call
func (*MockRepository_GetPublishedByPostType_Call) RunAndReturn ¶
type MockRepository_GetPublishedBySlugAny_Call ¶
MockRepository_GetPublishedBySlugAny_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedBySlugAny'
func (*MockRepository_GetPublishedBySlugAny_Call) Return ¶
func (_c *MockRepository_GetPublishedBySlugAny_Call) Return(content1 *content.Content, err error) *MockRepository_GetPublishedBySlugAny_Call
func (*MockRepository_GetPublishedBySlugAny_Call) Run ¶
func (_c *MockRepository_GetPublishedBySlugAny_Call) Run(run func(ctx context.Context, slug string)) *MockRepository_GetPublishedBySlugAny_Call
func (*MockRepository_GetPublishedBySlugAny_Call) RunAndReturn ¶
func (_c *MockRepository_GetPublishedBySlugAny_Call) RunAndReturn(run func(ctx context.Context, slug string) (*content.Content, error)) *MockRepository_GetPublishedBySlugAny_Call
type MockRepository_GetPublishedBySlug_Call ¶
MockRepository_GetPublishedBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedBySlug'
func (*MockRepository_GetPublishedBySlug_Call) Return ¶
func (_c *MockRepository_GetPublishedBySlug_Call) Return(content1 *content.Content, err error) *MockRepository_GetPublishedBySlug_Call
func (*MockRepository_GetPublishedBySlug_Call) Run ¶
func (_c *MockRepository_GetPublishedBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockRepository_GetPublishedBySlug_Call
func (*MockRepository_GetPublishedBySlug_Call) RunAndReturn ¶
func (_c *MockRepository_GetPublishedBySlug_Call) RunAndReturn(run func(ctx context.Context, slug string, language string) (*content.Content, error)) *MockRepository_GetPublishedBySlug_Call
type MockRepository_GetPublishedByTag_Call ¶
MockRepository_GetPublishedByTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedByTag'
func (*MockRepository_GetPublishedByTag_Call) Return ¶
func (_c *MockRepository_GetPublishedByTag_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedByTag_Call
func (*MockRepository_GetPublishedByTag_Call) Run ¶
func (_c *MockRepository_GetPublishedByTag_Call) Run(run func(ctx context.Context, tag string, language string, year int, month int, limit int, offset int)) *MockRepository_GetPublishedByTag_Call
func (*MockRepository_GetPublishedByTag_Call) RunAndReturn ¶
type MockRepository_GetPublishedCustomPostTypes_Call ¶
MockRepository_GetPublishedCustomPostTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedCustomPostTypes'
func (*MockRepository_GetPublishedCustomPostTypes_Call) Return ¶
func (_c *MockRepository_GetPublishedCustomPostTypes_Call) Return(strings []string, err error) *MockRepository_GetPublishedCustomPostTypes_Call
func (*MockRepository_GetPublishedCustomPostTypes_Call) Run ¶
func (_c *MockRepository_GetPublishedCustomPostTypes_Call) Run(run func(ctx context.Context)) *MockRepository_GetPublishedCustomPostTypes_Call
func (*MockRepository_GetPublishedCustomPostTypes_Call) RunAndReturn ¶
func (_c *MockRepository_GetPublishedCustomPostTypes_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockRepository_GetPublishedCustomPostTypes_Call
type MockRepository_GetPublishedPages_Call ¶
MockRepository_GetPublishedPages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedPages'
func (*MockRepository_GetPublishedPages_Call) Return ¶
func (_c *MockRepository_GetPublishedPages_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublishedPages_Call
func (*MockRepository_GetPublishedPages_Call) Run ¶
func (_c *MockRepository_GetPublishedPages_Call) Run(run func(ctx context.Context)) *MockRepository_GetPublishedPages_Call
func (*MockRepository_GetPublishedPages_Call) RunAndReturn ¶
func (_c *MockRepository_GetPublishedPages_Call) RunAndReturn(run func(ctx context.Context) ([]*content.Content, error)) *MockRepository_GetPublishedPages_Call
type MockRepository_GetPublishedTags_Call ¶ added in v0.5.0
MockRepository_GetPublishedTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedTags'
func (*MockRepository_GetPublishedTags_Call) Return ¶ added in v0.5.0
func (_c *MockRepository_GetPublishedTags_Call) Return(strings []string, err error) *MockRepository_GetPublishedTags_Call
func (*MockRepository_GetPublishedTags_Call) Run ¶ added in v0.5.0
func (_c *MockRepository_GetPublishedTags_Call) Run(run func(ctx context.Context)) *MockRepository_GetPublishedTags_Call
func (*MockRepository_GetPublishedTags_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockRepository_GetPublishedTags_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockRepository_GetPublishedTags_Call
type MockRepository_GetPublished_Call ¶
MockRepository_GetPublished_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublished'
func (*MockRepository_GetPublished_Call) Return ¶
func (_c *MockRepository_GetPublished_Call) Return(contents []*content.Content, err error) *MockRepository_GetPublished_Call
func (*MockRepository_GetPublished_Call) Run ¶
func (_c *MockRepository_GetPublished_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockRepository_GetPublished_Call
func (*MockRepository_GetPublished_Call) RunAndReturn ¶
func (_c *MockRepository_GetPublished_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*content.Content, error)) *MockRepository_GetPublished_Call
type MockRepository_GetRelatedByTags_Call ¶ added in v0.4.0
MockRepository_GetRelatedByTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRelatedByTags'
func (*MockRepository_GetRelatedByTags_Call) Return ¶ added in v0.4.0
func (_c *MockRepository_GetRelatedByTags_Call) Return(contents []*content.Content, err error) *MockRepository_GetRelatedByTags_Call
func (*MockRepository_GetRelatedByTags_Call) Run ¶ added in v0.4.0
func (_c *MockRepository_GetRelatedByTags_Call) Run(run func(ctx context.Context, excludeID int, tags []string, postType string, language string, limit int)) *MockRepository_GetRelatedByTags_Call
func (*MockRepository_GetRelatedByTags_Call) RunAndReturn ¶ added in v0.4.0
type MockRepository_GetTranslations_Call ¶
MockRepository_GetTranslations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTranslations'
func (*MockRepository_GetTranslations_Call) Return ¶
func (_c *MockRepository_GetTranslations_Call) Return(contents []*content.Content, err error) *MockRepository_GetTranslations_Call
func (*MockRepository_GetTranslations_Call) Run ¶
func (_c *MockRepository_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockRepository_GetTranslations_Call
func (*MockRepository_GetTranslations_Call) RunAndReturn ¶
func (_c *MockRepository_GetTranslations_Call) RunAndReturn(run func(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)) *MockRepository_GetTranslations_Call
type MockRepository_ListByCursor_Call ¶
MockRepository_ListByCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByCursor'
func (*MockRepository_ListByCursor_Call) Return ¶
func (_c *MockRepository_ListByCursor_Call) Return(contents []*content.Content, err error) *MockRepository_ListByCursor_Call
func (*MockRepository_ListByCursor_Call) Run ¶
func (_c *MockRepository_ListByCursor_Call) Run(run func(ctx context.Context, userID int, limit int, beforeID int, filters content.ContentFilters)) *MockRepository_ListByCursor_Call
func (*MockRepository_ListByCursor_Call) RunAndReturn ¶
func (_c *MockRepository_ListByCursor_Call) RunAndReturn(run func(ctx context.Context, userID int, limit int, beforeID int, filters content.ContentFilters) ([]*content.Content, error)) *MockRepository_ListByCursor_Call
type MockRepository_ListByFilters_Call ¶
MockRepository_ListByFilters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByFilters'
func (*MockRepository_ListByFilters_Call) Return ¶
func (_c *MockRepository_ListByFilters_Call) Return(contents []*content.Content, err error) *MockRepository_ListByFilters_Call
func (*MockRepository_ListByFilters_Call) Run ¶
func (_c *MockRepository_ListByFilters_Call) Run(run func(ctx context.Context, userID int, filters content.ContentFilters)) *MockRepository_ListByFilters_Call
func (*MockRepository_ListByFilters_Call) RunAndReturn ¶
func (_c *MockRepository_ListByFilters_Call) RunAndReturn(run func(ctx context.Context, userID int, filters content.ContentFilters) ([]*content.Content, error)) *MockRepository_ListByFilters_Call
type MockRepository_SearchPublished_Call ¶
MockRepository_SearchPublished_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchPublished'
func (*MockRepository_SearchPublished_Call) Return ¶
func (_c *MockRepository_SearchPublished_Call) Return(contents []*content.Content, err error) *MockRepository_SearchPublished_Call
func (*MockRepository_SearchPublished_Call) Run ¶
func (_c *MockRepository_SearchPublished_Call) Run(run func(ctx context.Context, query string, limit int)) *MockRepository_SearchPublished_Call
func (*MockRepository_SearchPublished_Call) RunAndReturn ¶
func (_c *MockRepository_SearchPublished_Call) RunAndReturn(run func(ctx context.Context, query string, limit int) ([]*content.Content, error)) *MockRepository_SearchPublished_Call
type MockRepository_TranslationGroupExists_Call ¶
MockRepository_TranslationGroupExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TranslationGroupExists'
func (*MockRepository_TranslationGroupExists_Call) Return ¶
func (_c *MockRepository_TranslationGroupExists_Call) Return(b bool, err error) *MockRepository_TranslationGroupExists_Call
func (*MockRepository_TranslationGroupExists_Call) Run ¶
func (_c *MockRepository_TranslationGroupExists_Call) Run(run func(ctx context.Context, id int)) *MockRepository_TranslationGroupExists_Call
func (*MockRepository_TranslationGroupExists_Call) RunAndReturn ¶
func (_c *MockRepository_TranslationGroupExists_Call) RunAndReturn(run func(ctx context.Context, id int) (bool, error)) *MockRepository_TranslationGroupExists_Call
type MockRepository_Update_Call ¶
MockRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockRepository_Update_Call) Return ¶
func (_c *MockRepository_Update_Call) Return(err error) *MockRepository_Update_Call
func (*MockRepository_Update_Call) Run ¶
func (_c *MockRepository_Update_Call) Run(run func(ctx context.Context, content1 *content.Content)) *MockRepository_Update_Call
func (*MockRepository_Update_Call) RunAndReturn ¶
func (_c *MockRepository_Update_Call) RunAndReturn(run func(ctx context.Context, content1 *content.Content) error) *MockRepository_Update_Call
type MockServiceInterface ¶
MockServiceInterface is an autogenerated mock type for the ServiceInterface type
func NewMockServiceInterface ¶
func NewMockServiceInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockServiceInterface
NewMockServiceInterface creates a new instance of MockServiceInterface. 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 (*MockServiceInterface) DeleteComment ¶
func (_mock *MockServiceInterface) DeleteComment(ctx context.Context, commentID int) error
DeleteComment provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) DeleteOwnComment ¶
func (_mock *MockServiceInterface) DeleteOwnComment(ctx context.Context, commentID int, userID int) error
DeleteOwnComment provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) EXPECT ¶
func (_m *MockServiceInterface) EXPECT() *MockServiceInterface_Expecter
func (*MockServiceInterface) GetComment ¶
func (_mock *MockServiceInterface) GetComment(ctx context.Context, commentID int) (*content.Comment, error)
GetComment provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) GetCommentsByStatus ¶ added in v0.3.0
func (_mock *MockServiceInterface) GetCommentsByStatus(ctx context.Context, status content.CommentStatus) ([]*content.Comment, error)
GetCommentsByStatus provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) GetCommentsByUserID ¶
func (_mock *MockServiceInterface) GetCommentsByUserID(ctx context.Context, userID int) ([]*content.Comment, error)
GetCommentsByUserID provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) GetCommentsForContent ¶
func (_mock *MockServiceInterface) GetCommentsForContent(ctx context.Context, contentID int) ([]*content.Comment, error)
GetCommentsForContent provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) GetCommentsForModeration ¶
func (_mock *MockServiceInterface) GetCommentsForModeration(ctx context.Context, contentID int) ([]*content.Comment, error)
GetCommentsForModeration provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) GetPublishedBySlug ¶
func (_mock *MockServiceInterface) GetPublishedBySlug(ctx context.Context, slug string, language string) (*content.Content, error)
GetPublishedBySlug provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) GetTranslations ¶
func (_mock *MockServiceInterface) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
GetTranslations provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) SubmitComment ¶
func (_mock *MockServiceInterface) SubmitComment(ctx context.Context, contentID int, userID int, req content.CreateCommentRequest) (*content.Comment, error)
SubmitComment provides a mock function for the type MockServiceInterface
func (*MockServiceInterface) UpdateCommentStatus ¶
func (_mock *MockServiceInterface) UpdateCommentStatus(ctx context.Context, commentID int, status content.CommentStatus) error
UpdateCommentStatus provides a mock function for the type MockServiceInterface
type MockServiceInterface_DeleteComment_Call ¶
MockServiceInterface_DeleteComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComment'
func (*MockServiceInterface_DeleteComment_Call) Return ¶
func (_c *MockServiceInterface_DeleteComment_Call) Return(err error) *MockServiceInterface_DeleteComment_Call
func (*MockServiceInterface_DeleteComment_Call) Run ¶
func (_c *MockServiceInterface_DeleteComment_Call) Run(run func(ctx context.Context, commentID int)) *MockServiceInterface_DeleteComment_Call
func (*MockServiceInterface_DeleteComment_Call) RunAndReturn ¶
func (_c *MockServiceInterface_DeleteComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) error) *MockServiceInterface_DeleteComment_Call
type MockServiceInterface_DeleteOwnComment_Call ¶
MockServiceInterface_DeleteOwnComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOwnComment'
func (*MockServiceInterface_DeleteOwnComment_Call) Return ¶
func (_c *MockServiceInterface_DeleteOwnComment_Call) Return(err error) *MockServiceInterface_DeleteOwnComment_Call
func (*MockServiceInterface_DeleteOwnComment_Call) Run ¶
func (_c *MockServiceInterface_DeleteOwnComment_Call) Run(run func(ctx context.Context, commentID int, userID int)) *MockServiceInterface_DeleteOwnComment_Call
func (*MockServiceInterface_DeleteOwnComment_Call) RunAndReturn ¶
func (_c *MockServiceInterface_DeleteOwnComment_Call) RunAndReturn(run func(ctx context.Context, commentID int, userID int) error) *MockServiceInterface_DeleteOwnComment_Call
type MockServiceInterface_Expecter ¶
type MockServiceInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServiceInterface_Expecter) DeleteComment ¶
func (_e *MockServiceInterface_Expecter) DeleteComment(ctx any, commentID any) *MockServiceInterface_DeleteComment_Call
DeleteComment is a helper method to define mock.On call
- ctx context.Context
- commentID int
func (*MockServiceInterface_Expecter) DeleteOwnComment ¶
func (_e *MockServiceInterface_Expecter) DeleteOwnComment(ctx any, commentID any, userID any) *MockServiceInterface_DeleteOwnComment_Call
DeleteOwnComment is a helper method to define mock.On call
- ctx context.Context
- commentID int
- userID int
func (*MockServiceInterface_Expecter) GetComment ¶
func (_e *MockServiceInterface_Expecter) GetComment(ctx any, commentID any) *MockServiceInterface_GetComment_Call
GetComment is a helper method to define mock.On call
- ctx context.Context
- commentID int
func (*MockServiceInterface_Expecter) GetCommentsByStatus ¶ added in v0.3.0
func (_e *MockServiceInterface_Expecter) GetCommentsByStatus(ctx any, status any) *MockServiceInterface_GetCommentsByStatus_Call
GetCommentsByStatus is a helper method to define mock.On call
- ctx context.Context
- status content.CommentStatus
func (*MockServiceInterface_Expecter) GetCommentsByUserID ¶
func (_e *MockServiceInterface_Expecter) GetCommentsByUserID(ctx any, userID any) *MockServiceInterface_GetCommentsByUserID_Call
GetCommentsByUserID is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockServiceInterface_Expecter) GetCommentsForContent ¶
func (_e *MockServiceInterface_Expecter) GetCommentsForContent(ctx any, contentID any) *MockServiceInterface_GetCommentsForContent_Call
GetCommentsForContent is a helper method to define mock.On call
- ctx context.Context
- contentID int
func (*MockServiceInterface_Expecter) GetCommentsForModeration ¶
func (_e *MockServiceInterface_Expecter) GetCommentsForModeration(ctx any, contentID any) *MockServiceInterface_GetCommentsForModeration_Call
GetCommentsForModeration is a helper method to define mock.On call
- ctx context.Context
- contentID int
func (*MockServiceInterface_Expecter) GetPublishedBySlug ¶
func (_e *MockServiceInterface_Expecter) GetPublishedBySlug(ctx any, slug any, language any) *MockServiceInterface_GetPublishedBySlug_Call
GetPublishedBySlug is a helper method to define mock.On call
- ctx context.Context
- slug string
- language string
func (*MockServiceInterface_Expecter) GetTranslations ¶
func (_e *MockServiceInterface_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockServiceInterface_GetTranslations_Call
GetTranslations is a helper method to define mock.On call
- ctx context.Context
- translationGroupID int
- excludeID int
func (*MockServiceInterface_Expecter) SubmitComment ¶
func (_e *MockServiceInterface_Expecter) SubmitComment(ctx any, contentID any, userID any, req any) *MockServiceInterface_SubmitComment_Call
SubmitComment is a helper method to define mock.On call
- ctx context.Context
- contentID int
- userID int
- req content.CreateCommentRequest
func (*MockServiceInterface_Expecter) UpdateCommentStatus ¶
func (_e *MockServiceInterface_Expecter) UpdateCommentStatus(ctx any, commentID any, status any) *MockServiceInterface_UpdateCommentStatus_Call
UpdateCommentStatus is a helper method to define mock.On call
- ctx context.Context
- commentID int
- status content.CommentStatus
type MockServiceInterface_GetComment_Call ¶
MockServiceInterface_GetComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComment'
func (*MockServiceInterface_GetComment_Call) Return ¶
func (_c *MockServiceInterface_GetComment_Call) Return(comment *content.Comment, err error) *MockServiceInterface_GetComment_Call
func (*MockServiceInterface_GetComment_Call) Run ¶
func (_c *MockServiceInterface_GetComment_Call) Run(run func(ctx context.Context, commentID int)) *MockServiceInterface_GetComment_Call
func (*MockServiceInterface_GetComment_Call) RunAndReturn ¶
func (_c *MockServiceInterface_GetComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) (*content.Comment, error)) *MockServiceInterface_GetComment_Call
type MockServiceInterface_GetCommentsByStatus_Call ¶ added in v0.3.0
MockServiceInterface_GetCommentsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsByStatus'
func (*MockServiceInterface_GetCommentsByStatus_Call) Return ¶ added in v0.3.0
func (_c *MockServiceInterface_GetCommentsByStatus_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsByStatus_Call
func (*MockServiceInterface_GetCommentsByStatus_Call) Run ¶ added in v0.3.0
func (_c *MockServiceInterface_GetCommentsByStatus_Call) Run(run func(ctx context.Context, status content.CommentStatus)) *MockServiceInterface_GetCommentsByStatus_Call
func (*MockServiceInterface_GetCommentsByStatus_Call) RunAndReturn ¶ added in v0.3.0
func (_c *MockServiceInterface_GetCommentsByStatus_Call) RunAndReturn(run func(ctx context.Context, status content.CommentStatus) ([]*content.Comment, error)) *MockServiceInterface_GetCommentsByStatus_Call
type MockServiceInterface_GetCommentsByUserID_Call ¶
MockServiceInterface_GetCommentsByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsByUserID'
func (*MockServiceInterface_GetCommentsByUserID_Call) Return ¶
func (_c *MockServiceInterface_GetCommentsByUserID_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsByUserID_Call
func (*MockServiceInterface_GetCommentsByUserID_Call) Run ¶
func (_c *MockServiceInterface_GetCommentsByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockServiceInterface_GetCommentsByUserID_Call
func (*MockServiceInterface_GetCommentsByUserID_Call) RunAndReturn ¶
func (_c *MockServiceInterface_GetCommentsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*content.Comment, error)) *MockServiceInterface_GetCommentsByUserID_Call
type MockServiceInterface_GetCommentsForContent_Call ¶
MockServiceInterface_GetCommentsForContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsForContent'
func (*MockServiceInterface_GetCommentsForContent_Call) Return ¶
func (_c *MockServiceInterface_GetCommentsForContent_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsForContent_Call
func (*MockServiceInterface_GetCommentsForContent_Call) Run ¶
func (_c *MockServiceInterface_GetCommentsForContent_Call) Run(run func(ctx context.Context, contentID int)) *MockServiceInterface_GetCommentsForContent_Call
func (*MockServiceInterface_GetCommentsForContent_Call) RunAndReturn ¶
func (_c *MockServiceInterface_GetCommentsForContent_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockServiceInterface_GetCommentsForContent_Call
type MockServiceInterface_GetCommentsForModeration_Call ¶
MockServiceInterface_GetCommentsForModeration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsForModeration'
func (*MockServiceInterface_GetCommentsForModeration_Call) Return ¶
func (_c *MockServiceInterface_GetCommentsForModeration_Call) Return(comments []*content.Comment, err error) *MockServiceInterface_GetCommentsForModeration_Call
func (*MockServiceInterface_GetCommentsForModeration_Call) Run ¶
func (_c *MockServiceInterface_GetCommentsForModeration_Call) Run(run func(ctx context.Context, contentID int)) *MockServiceInterface_GetCommentsForModeration_Call
func (*MockServiceInterface_GetCommentsForModeration_Call) RunAndReturn ¶
func (_c *MockServiceInterface_GetCommentsForModeration_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*content.Comment, error)) *MockServiceInterface_GetCommentsForModeration_Call
type MockServiceInterface_GetPublishedBySlug_Call ¶
MockServiceInterface_GetPublishedBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublishedBySlug'
func (*MockServiceInterface_GetPublishedBySlug_Call) Return ¶
func (_c *MockServiceInterface_GetPublishedBySlug_Call) Return(content1 *content.Content, err error) *MockServiceInterface_GetPublishedBySlug_Call
func (*MockServiceInterface_GetPublishedBySlug_Call) Run ¶
func (_c *MockServiceInterface_GetPublishedBySlug_Call) Run(run func(ctx context.Context, slug string, language string)) *MockServiceInterface_GetPublishedBySlug_Call
func (*MockServiceInterface_GetPublishedBySlug_Call) RunAndReturn ¶
func (_c *MockServiceInterface_GetPublishedBySlug_Call) RunAndReturn(run func(ctx context.Context, slug string, language string) (*content.Content, error)) *MockServiceInterface_GetPublishedBySlug_Call
type MockServiceInterface_GetTranslations_Call ¶
MockServiceInterface_GetTranslations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTranslations'
func (*MockServiceInterface_GetTranslations_Call) Return ¶
func (_c *MockServiceInterface_GetTranslations_Call) Return(contents []*content.Content, err error) *MockServiceInterface_GetTranslations_Call
func (*MockServiceInterface_GetTranslations_Call) Run ¶
func (_c *MockServiceInterface_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockServiceInterface_GetTranslations_Call
func (*MockServiceInterface_GetTranslations_Call) RunAndReturn ¶
func (_c *MockServiceInterface_GetTranslations_Call) RunAndReturn(run func(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)) *MockServiceInterface_GetTranslations_Call
type MockServiceInterface_SubmitComment_Call ¶
MockServiceInterface_SubmitComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubmitComment'
func (*MockServiceInterface_SubmitComment_Call) Return ¶
func (_c *MockServiceInterface_SubmitComment_Call) Return(comment *content.Comment, err error) *MockServiceInterface_SubmitComment_Call
func (*MockServiceInterface_SubmitComment_Call) Run ¶
func (_c *MockServiceInterface_SubmitComment_Call) Run(run func(ctx context.Context, contentID int, userID int, req content.CreateCommentRequest)) *MockServiceInterface_SubmitComment_Call
func (*MockServiceInterface_SubmitComment_Call) RunAndReturn ¶
func (_c *MockServiceInterface_SubmitComment_Call) RunAndReturn(run func(ctx context.Context, contentID int, userID int, req content.CreateCommentRequest) (*content.Comment, error)) *MockServiceInterface_SubmitComment_Call
type MockServiceInterface_UpdateCommentStatus_Call ¶
MockServiceInterface_UpdateCommentStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCommentStatus'
func (*MockServiceInterface_UpdateCommentStatus_Call) Return ¶
func (_c *MockServiceInterface_UpdateCommentStatus_Call) Return(err error) *MockServiceInterface_UpdateCommentStatus_Call
func (*MockServiceInterface_UpdateCommentStatus_Call) Run ¶
func (_c *MockServiceInterface_UpdateCommentStatus_Call) Run(run func(ctx context.Context, commentID int, status content.CommentStatus)) *MockServiceInterface_UpdateCommentStatus_Call
func (*MockServiceInterface_UpdateCommentStatus_Call) RunAndReturn ¶
func (_c *MockServiceInterface_UpdateCommentStatus_Call) RunAndReturn(run func(ctx context.Context, commentID int, status content.CommentStatus) error) *MockServiceInterface_UpdateCommentStatus_Call