mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCommentRepository

type MockCommentRepository struct {
	mock.Mock
}

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

func (_mock *MockCommentRepository) Create(ctx context.Context, comment *content.Comment) error

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 (*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

func (_mock *MockCommentRepository) GetByID(ctx context.Context, id int) (*content.Comment, error)

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

type MockCommentRepository_Create_Call struct {
	*mock.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 (*MockCommentRepository_Create_Call) Run

func (*MockCommentRepository_Create_Call) RunAndReturn

type MockCommentRepository_DeleteByUserID_Call

type MockCommentRepository_DeleteByUserID_Call struct {
	*mock.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 (*MockCommentRepository_DeleteByUserID_Call) Run

func (*MockCommentRepository_DeleteByUserID_Call) RunAndReturn

type MockCommentRepository_Delete_Call

type MockCommentRepository_Delete_Call struct {
	*mock.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 (*MockCommentRepository_Delete_Call) Run

func (*MockCommentRepository_Delete_Call) RunAndReturn

type MockCommentRepository_Expecter

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

func (*MockCommentRepository_Expecter) Create

Create is a helper method to define mock.On call

  • ctx context.Context
  • comment *content.Comment

func (*MockCommentRepository_Expecter) Delete

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id int

func (*MockCommentRepository_Expecter) DeleteByUserID

DeleteByUserID is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockCommentRepository_Expecter) GetByContentID

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

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id int

func (*MockCommentRepository_Expecter) GetByStatus added in v0.3.0

GetByStatus is a helper method to define mock.On call

  • ctx context.Context
  • status content.CommentStatus

func (*MockCommentRepository_Expecter) GetByUserID

GetByUserID is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockCommentRepository_Expecter) UpdateStatus

UpdateStatus is a helper method to define mock.On call

  • ctx context.Context
  • id int
  • status content.CommentStatus

type MockCommentRepository_GetByContentIDForModeration_Call

type MockCommentRepository_GetByContentIDForModeration_Call struct {
	*mock.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 (*MockCommentRepository_GetByContentIDForModeration_Call) Run

func (*MockCommentRepository_GetByContentIDForModeration_Call) RunAndReturn

type MockCommentRepository_GetByContentID_Call

type MockCommentRepository_GetByContentID_Call struct {
	*mock.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 (*MockCommentRepository_GetByContentID_Call) Run

func (*MockCommentRepository_GetByContentID_Call) RunAndReturn

type MockCommentRepository_GetByID_Call

type MockCommentRepository_GetByID_Call struct {
	*mock.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 (*MockCommentRepository_GetByID_Call) Run

func (*MockCommentRepository_GetByID_Call) RunAndReturn

type MockCommentRepository_GetByStatus_Call added in v0.3.0

type MockCommentRepository_GetByStatus_Call struct {
	*mock.Call
}

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 (*MockCommentRepository_GetByStatus_Call) Run added in v0.3.0

func (*MockCommentRepository_GetByStatus_Call) RunAndReturn added in v0.3.0

type MockCommentRepository_GetByUserID_Call

type MockCommentRepository_GetByUserID_Call struct {
	*mock.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 (*MockCommentRepository_GetByUserID_Call) Run

func (*MockCommentRepository_GetByUserID_Call) RunAndReturn

type MockCommentRepository_UpdateStatus_Call

type MockCommentRepository_UpdateStatus_Call struct {
	*mock.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 (*MockCommentRepository_UpdateStatus_Call) Run

func (*MockCommentRepository_UpdateStatus_Call) RunAndReturn

type MockHookExecutor

type MockHookExecutor struct {
	mock.Mock
}

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 (*MockHookExecutor) Execute

func (_mock *MockHookExecutor) Execute(ctx context.Context, hookName plugin.HookName, data []byte) ([]byte, error)

Execute provides a mock function for the type MockHookExecutor

type MockHookExecutor_Execute_Call

type MockHookExecutor_Execute_Call struct {
	*mock.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 (*MockHookExecutor_Execute_Call) Run

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

type MockPostTypeServiceInterface struct {
	mock.Mock
}

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 (*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

GetBySlug is a helper method to define mock.On call

  • slug string

func (*MockPostTypeServiceInterface_Expecter) GetFieldsByPostType

GetFieldsByPostType is a helper method to define mock.On call

  • slug string

func (*MockPostTypeServiceInterface_Expecter) GetSystemFieldsByPostType

GetSystemFieldsByPostType is a helper method to define mock.On call

  • slug string

type MockPostTypeServiceInterface_GetBySlug_Call

type MockPostTypeServiceInterface_GetBySlug_Call struct {
	*mock.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 (*MockPostTypeServiceInterface_GetBySlug_Call) Run

func (*MockPostTypeServiceInterface_GetBySlug_Call) RunAndReturn

type MockPostTypeServiceInterface_GetFieldsByPostType_Call

type MockPostTypeServiceInterface_GetFieldsByPostType_Call struct {
	*mock.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 (*MockPostTypeServiceInterface_GetFieldsByPostType_Call) Run

func (*MockPostTypeServiceInterface_GetFieldsByPostType_Call) RunAndReturn

type MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call

type MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call struct {
	*mock.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 (*MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) Run

func (*MockPostTypeServiceInterface_GetSystemFieldsByPostType_Call) RunAndReturn

type MockRepository

type MockRepository struct {
	mock.Mock
}

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

func (_mock *MockRepository) AuthorExists(ctx context.Context, username string) (bool, error)

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) Create

func (_mock *MockRepository) Create(ctx context.Context, content1 *content.Content) error

Create provides a mock function for the type MockRepository

func (*MockRepository) Delete

func (_mock *MockRepository) Delete(ctx context.Context, id int, userID int) error

Delete 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 (*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) GetByID

func (_mock *MockRepository) GetByID(ctx context.Context, id int) (*content.Content, error)

GetByID 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

func (_mock *MockRepository) GetPublishedPages(ctx context.Context) ([]*content.Content, error)

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

func (_mock *MockRepository) TranslationGroupExists(ctx context.Context, id int) (bool, error)

TranslationGroupExists provides a mock function for the type MockRepository

func (*MockRepository) Update

func (_mock *MockRepository) Update(ctx context.Context, content1 *content.Content) error

Update provides a mock function for the type MockRepository

type MockRepository_AuthorExists_Call

type MockRepository_AuthorExists_Call struct {
	*mock.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 (*MockRepository_AuthorExists_Call) Run

func (*MockRepository_AuthorExists_Call) RunAndReturn

type MockRepository_CheckSlugUnique_Call

type MockRepository_CheckSlugUnique_Call struct {
	*mock.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 (*MockRepository_CheckSlugUnique_Call) Run

func (*MockRepository_CheckSlugUnique_Call) RunAndReturn

type MockRepository_Create_Call

type MockRepository_Create_Call struct {
	*mock.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 (*MockRepository_Create_Call) Run

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

type MockRepository_DeleteByID_Call struct {
	*mock.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 (*MockRepository_DeleteByID_Call) Run

func (*MockRepository_DeleteByID_Call) RunAndReturn

type MockRepository_Delete_Call

type MockRepository_Delete_Call struct {
	*mock.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 (*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

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

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

GetPublishedPages is a helper method to define mock.On call

  • ctx context.Context

func (*MockRepository_Expecter) GetPublishedTags added in v0.5.0

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

type MockRepository_GetAll_Call struct {
	*mock.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 (*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

type MockRepository_GetByID_Call struct {
	*mock.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 (*MockRepository_GetByID_Call) Run

func (*MockRepository_GetByID_Call) RunAndReturn

type MockRepository_GetBySlug_Call

type MockRepository_GetBySlug_Call struct {
	*mock.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 (*MockRepository_GetBySlug_Call) Run

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

type MockRepository_GetByUser_Call struct {
	*mock.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 (*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

type MockRepository_GetLatestByPostType_Call struct {
	*mock.Call
}

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 (*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

func (_c *MockRepository_GetLatestByPostType_Call) RunAndReturn(run func(ctx context.Context, excludeID int, postType string, language string, limit int) ([]*content.Content, error)) *MockRepository_GetLatestByPostType_Call

type MockRepository_GetPublishedArchive_Call added in v0.6.0

type MockRepository_GetPublishedArchive_Call struct {
	*mock.Call
}

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 (*MockRepository_GetPublishedArchive_Call) Run added in v0.6.0

func (*MockRepository_GetPublishedArchive_Call) RunAndReturn added in v0.6.0

type MockRepository_GetPublishedAuthors_Call added in v0.5.0

type MockRepository_GetPublishedAuthors_Call struct {
	*mock.Call
}

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 (*MockRepository_GetPublishedAuthors_Call) Run added in v0.5.0

func (*MockRepository_GetPublishedAuthors_Call) RunAndReturn added in v0.5.0

type MockRepository_GetPublishedByAuthorUsername_Call

type MockRepository_GetPublishedByAuthorUsername_Call struct {
	*mock.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 (*MockRepository_GetPublishedByAuthorUsername_Call) Run

func (*MockRepository_GetPublishedByAuthorUsername_Call) RunAndReturn

type MockRepository_GetPublishedByPostType_Call

type MockRepository_GetPublishedByPostType_Call struct {
	*mock.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 (*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

func (_c *MockRepository_GetPublishedByPostType_Call) RunAndReturn(run func(ctx context.Context, postType string, language string, year int, month int, limit int, offset int) ([]*content.Content, error)) *MockRepository_GetPublishedByPostType_Call

type MockRepository_GetPublishedBySlugAny_Call

type MockRepository_GetPublishedBySlugAny_Call struct {
	*mock.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 (*MockRepository_GetPublishedBySlugAny_Call) Run

func (*MockRepository_GetPublishedBySlugAny_Call) RunAndReturn

type MockRepository_GetPublishedBySlug_Call

type MockRepository_GetPublishedBySlug_Call struct {
	*mock.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 (*MockRepository_GetPublishedBySlug_Call) Run

func (*MockRepository_GetPublishedBySlug_Call) RunAndReturn

type MockRepository_GetPublishedByTag_Call

type MockRepository_GetPublishedByTag_Call struct {
	*mock.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 (*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

func (_c *MockRepository_GetPublishedByTag_Call) RunAndReturn(run func(ctx context.Context, tag string, language string, year int, month int, limit int, offset int) ([]*content.Content, error)) *MockRepository_GetPublishedByTag_Call

type MockRepository_GetPublishedCustomPostTypes_Call

type MockRepository_GetPublishedCustomPostTypes_Call struct {
	*mock.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 (*MockRepository_GetPublishedCustomPostTypes_Call) Run

func (*MockRepository_GetPublishedCustomPostTypes_Call) RunAndReturn

type MockRepository_GetPublishedPages_Call

type MockRepository_GetPublishedPages_Call struct {
	*mock.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 (*MockRepository_GetPublishedPages_Call) Run

func (*MockRepository_GetPublishedPages_Call) RunAndReturn

type MockRepository_GetPublishedTags_Call added in v0.5.0

type MockRepository_GetPublishedTags_Call struct {
	*mock.Call
}

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 (*MockRepository_GetPublishedTags_Call) Run added in v0.5.0

func (*MockRepository_GetPublishedTags_Call) RunAndReturn added in v0.5.0

type MockRepository_GetPublished_Call

type MockRepository_GetPublished_Call struct {
	*mock.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 (*MockRepository_GetPublished_Call) Run

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

type MockRepository_GetRelatedByTags_Call struct {
	*mock.Call
}

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 (*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

func (_c *MockRepository_GetRelatedByTags_Call) RunAndReturn(run func(ctx context.Context, excludeID int, tags []string, postType string, language string, limit int) ([]*content.Content, error)) *MockRepository_GetRelatedByTags_Call

type MockRepository_GetTranslations_Call

type MockRepository_GetTranslations_Call struct {
	*mock.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 (*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

type MockRepository_ListByCursor_Call struct {
	*mock.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 (*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

type MockRepository_ListByFilters_Call struct {
	*mock.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 (*MockRepository_ListByFilters_Call) Run

func (*MockRepository_ListByFilters_Call) RunAndReturn

type MockRepository_SearchPublished_Call

type MockRepository_SearchPublished_Call struct {
	*mock.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 (*MockRepository_SearchPublished_Call) Run

func (*MockRepository_SearchPublished_Call) RunAndReturn

type MockRepository_TranslationGroupExists_Call

type MockRepository_TranslationGroupExists_Call struct {
	*mock.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 (*MockRepository_TranslationGroupExists_Call) Run

func (*MockRepository_TranslationGroupExists_Call) RunAndReturn

type MockRepository_Update_Call

type MockRepository_Update_Call struct {
	*mock.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 (*MockRepository_Update_Call) Run

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

type MockServiceInterface struct {
	mock.Mock
}

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 (*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

type MockServiceInterface_DeleteComment_Call struct {
	*mock.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 (*MockServiceInterface_DeleteComment_Call) Run

func (*MockServiceInterface_DeleteComment_Call) RunAndReturn

type MockServiceInterface_DeleteOwnComment_Call

type MockServiceInterface_DeleteOwnComment_Call struct {
	*mock.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 (*MockServiceInterface_DeleteOwnComment_Call) Run

func (*MockServiceInterface_DeleteOwnComment_Call) RunAndReturn

type MockServiceInterface_Expecter

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

func (*MockServiceInterface_Expecter) DeleteComment

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

GetComment is a helper method to define mock.On call

  • ctx context.Context
  • commentID int

func (*MockServiceInterface_Expecter) GetCommentsByStatus added in v0.3.0

GetCommentsByStatus is a helper method to define mock.On call

  • ctx context.Context
  • status content.CommentStatus

func (*MockServiceInterface_Expecter) GetCommentsByUserID

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

type MockServiceInterface_GetComment_Call struct {
	*mock.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 (*MockServiceInterface_GetComment_Call) Run

func (*MockServiceInterface_GetComment_Call) RunAndReturn

type MockServiceInterface_GetCommentsByStatus_Call added in v0.3.0

type MockServiceInterface_GetCommentsByStatus_Call struct {
	*mock.Call
}

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 (*MockServiceInterface_GetCommentsByStatus_Call) Run added in v0.3.0

func (*MockServiceInterface_GetCommentsByStatus_Call) RunAndReturn added in v0.3.0

type MockServiceInterface_GetCommentsByUserID_Call

type MockServiceInterface_GetCommentsByUserID_Call struct {
	*mock.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 (*MockServiceInterface_GetCommentsByUserID_Call) Run

func (*MockServiceInterface_GetCommentsByUserID_Call) RunAndReturn

type MockServiceInterface_GetCommentsForContent_Call

type MockServiceInterface_GetCommentsForContent_Call struct {
	*mock.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 (*MockServiceInterface_GetCommentsForContent_Call) Run

func (*MockServiceInterface_GetCommentsForContent_Call) RunAndReturn

type MockServiceInterface_GetCommentsForModeration_Call

type MockServiceInterface_GetCommentsForModeration_Call struct {
	*mock.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 (*MockServiceInterface_GetCommentsForModeration_Call) Run

func (*MockServiceInterface_GetCommentsForModeration_Call) RunAndReturn

type MockServiceInterface_GetPublishedBySlug_Call

type MockServiceInterface_GetPublishedBySlug_Call struct {
	*mock.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 (*MockServiceInterface_GetPublishedBySlug_Call) Run

func (*MockServiceInterface_GetPublishedBySlug_Call) RunAndReturn

type MockServiceInterface_GetTranslations_Call

type MockServiceInterface_GetTranslations_Call struct {
	*mock.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 (*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

type MockServiceInterface_SubmitComment_Call struct {
	*mock.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 (*MockServiceInterface_SubmitComment_Call) Run

func (*MockServiceInterface_SubmitComment_Call) RunAndReturn

type MockServiceInterface_UpdateCommentStatus_Call

type MockServiceInterface_UpdateCommentStatus_Call struct {
	*mock.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 (*MockServiceInterface_UpdateCommentStatus_Call) Run

func (*MockServiceInterface_UpdateCommentStatus_Call) RunAndReturn

Jump to

Keyboard shortcuts

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