mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPIKeyService

type MockAPIKeyService struct {
	mock.Mock
}

MockAPIKeyService is an autogenerated mock type for the APIKeyService type

func NewMockAPIKeyService

func NewMockAPIKeyService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAPIKeyService

NewMockAPIKeyService creates a new instance of MockAPIKeyService. 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 (*MockAPIKeyService) Create

func (_mock *MockAPIKeyService) Create(ctx context.Context, principal kernel.Principal, name string) (string, *apikey.APIKey, error)

Create provides a mock function for the type MockAPIKeyService

func (*MockAPIKeyService) EXPECT

func (*MockAPIKeyService) List

func (_mock *MockAPIKeyService) List(ctx context.Context, principal kernel.Principal) ([]*apikey.APIKey, error)

List provides a mock function for the type MockAPIKeyService

func (*MockAPIKeyService) Revoke

func (_mock *MockAPIKeyService) Revoke(ctx context.Context, id int, principal kernel.Principal) (*apikey.APIKey, error)

Revoke provides a mock function for the type MockAPIKeyService

type MockAPIKeyService_Create_Call

type MockAPIKeyService_Create_Call struct {
	*mock.Call
}

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

func (*MockAPIKeyService_Create_Call) Return

func (*MockAPIKeyService_Create_Call) Run

func (*MockAPIKeyService_Create_Call) RunAndReturn

type MockAPIKeyService_Expecter

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

func (*MockAPIKeyService_Expecter) Create

func (_e *MockAPIKeyService_Expecter) Create(ctx any, principal any, name any) *MockAPIKeyService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • principal kernel.Principal
  • name string

func (*MockAPIKeyService_Expecter) List

List is a helper method to define mock.On call

  • ctx context.Context
  • principal kernel.Principal

func (*MockAPIKeyService_Expecter) Revoke

func (_e *MockAPIKeyService_Expecter) Revoke(ctx any, id any, principal any) *MockAPIKeyService_Revoke_Call

Revoke is a helper method to define mock.On call

  • ctx context.Context
  • id int
  • principal kernel.Principal

type MockAPIKeyService_List_Call

type MockAPIKeyService_List_Call struct {
	*mock.Call
}

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

func (*MockAPIKeyService_List_Call) Return

func (*MockAPIKeyService_List_Call) Run

func (*MockAPIKeyService_List_Call) RunAndReturn

func (_c *MockAPIKeyService_List_Call) RunAndReturn(run func(ctx context.Context, principal kernel.Principal) ([]*apikey.APIKey, error)) *MockAPIKeyService_List_Call

type MockAPIKeyService_Revoke_Call

type MockAPIKeyService_Revoke_Call struct {
	*mock.Call
}

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

func (*MockAPIKeyService_Revoke_Call) Return

func (*MockAPIKeyService_Revoke_Call) Run

func (*MockAPIKeyService_Revoke_Call) RunAndReturn

type MockContentServiceInterface

type MockContentServiceInterface struct {
	mock.Mock
}

MockContentServiceInterface is an autogenerated mock type for the ContentServiceInterface type

func NewMockContentServiceInterface

func NewMockContentServiceInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockContentServiceInterface

NewMockContentServiceInterface creates a new instance of MockContentServiceInterface. 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 (*MockContentServiceInterface) AuthorExists

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

AuthorExists provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) Count added in v0.8.0

func (_mock *MockContentServiceInterface) Count(ctx context.Context, userID int, filters content.ContentFilters) (int, error)

Count provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) Create

Create provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) DeleteContent

func (_mock *MockContentServiceInterface) DeleteContent(ctx context.Context, id int, principal kernel.Principal) error

DeleteContent provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) EXPECT

func (*MockContentServiceInterface) GenerateSlugFromTitle

func (_mock *MockContentServiceInterface) GenerateSlugFromTitle(ctx context.Context, title string) (string, error)

GenerateSlugFromTitle provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetAll

func (_mock *MockContentServiceInterface) GetAll(ctx context.Context, limit int, offset int) ([]*content.Content, error)

GetAll provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetByID

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

GetByID provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetByUser

func (_mock *MockContentServiceInterface) GetByUser(ctx context.Context, userID int, limit int, offset int) ([]*content.Content, error)

GetByUser provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetPublished

func (_mock *MockContentServiceInterface) GetPublished(ctx context.Context, limit int, offset int) ([]*content.Content, error)

GetPublished provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetPublishedArchive added in v0.6.0

func (_mock *MockContentServiceInterface) GetPublishedArchive(ctx context.Context, postType string, languages []string) ([]*content.ArchiveMonth, error)

GetPublishedArchive provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetPublishedAuthor added in v0.7.0

func (_mock *MockContentServiceInterface) GetPublishedAuthor(ctx context.Context, username string) (*content.PublishedAuthor, error)

GetPublishedAuthor provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetPublishedAuthors added in v0.5.0

GetPublishedAuthors provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetPublishedByAuthorUsername

func (_mock *MockContentServiceInterface) GetPublishedByAuthorUsername(ctx context.Context, username string, languages []string, limit int, offset int) ([]*content.Content, error)

GetPublishedByAuthorUsername provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetPublishedByPostType added in v0.6.0

func (_mock *MockContentServiceInterface) GetPublishedByPostType(ctx context.Context, postType string, languages []string, year int, month int, limit int, offset int) ([]*content.Content, error)

GetPublishedByPostType provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetPublishedBySlug

func (_mock *MockContentServiceInterface) GetPublishedBySlug(ctx context.Context, slug string, language string) (*content.Content, error)

GetPublishedBySlug provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) GetTranslations

func (_mock *MockContentServiceInterface) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)

GetTranslations provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) ListByFilters

func (_mock *MockContentServiceInterface) ListByFilters(ctx context.Context, userID int, filters content.ContentFilters) ([]*content.Content, error)

ListByFilters provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) SearchPublished

func (_mock *MockContentServiceInterface) SearchPublished(ctx context.Context, query string, limit int) ([]*content.Content, error)

SearchPublished provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) SetSystemFields

func (_mock *MockContentServiceInterface) SetSystemFields(ctx context.Context, contentID int, principal kernel.Principal, systemFields map[string]any) (*content.Content, error)

SetSystemFields provides a mock function for the type MockContentServiceInterface

func (*MockContentServiceInterface) Update

Update provides a mock function for the type MockContentServiceInterface

type MockContentServiceInterface_AuthorExists_Call

type MockContentServiceInterface_AuthorExists_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_AuthorExists_Call) Return

func (*MockContentServiceInterface_AuthorExists_Call) Run

func (*MockContentServiceInterface_AuthorExists_Call) RunAndReturn

type MockContentServiceInterface_Count_Call added in v0.8.0

type MockContentServiceInterface_Count_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_Count_Call) Return added in v0.8.0

func (*MockContentServiceInterface_Count_Call) Run added in v0.8.0

func (*MockContentServiceInterface_Count_Call) RunAndReturn added in v0.8.0

type MockContentServiceInterface_Create_Call

type MockContentServiceInterface_Create_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_Create_Call) Return

func (*MockContentServiceInterface_Create_Call) Run

func (*MockContentServiceInterface_Create_Call) RunAndReturn

type MockContentServiceInterface_DeleteContent_Call

type MockContentServiceInterface_DeleteContent_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_DeleteContent_Call) Return

func (*MockContentServiceInterface_DeleteContent_Call) Run

func (*MockContentServiceInterface_DeleteContent_Call) RunAndReturn

type MockContentServiceInterface_Expecter

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

func (*MockContentServiceInterface_Expecter) AuthorExists

AuthorExists is a helper method to define mock.On call

  • ctx context.Context
  • username string

func (*MockContentServiceInterface_Expecter) Count added in v0.8.0

Count is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • filters content.ContentFilters

func (*MockContentServiceInterface_Expecter) Create

Create is a helper method to define mock.On call

  • ctx context.Context
  • principal kernel.Principal
  • req content.CreateContentRequest

func (*MockContentServiceInterface_Expecter) DeleteContent

DeleteContent is a helper method to define mock.On call

  • ctx context.Context
  • id int
  • principal kernel.Principal

func (*MockContentServiceInterface_Expecter) GenerateSlugFromTitle

GenerateSlugFromTitle is a helper method to define mock.On call

  • ctx context.Context
  • title string

func (*MockContentServiceInterface_Expecter) GetAll

GetAll is a helper method to define mock.On call

  • ctx context.Context
  • limit int
  • offset int

func (*MockContentServiceInterface_Expecter) GetByID

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id int

func (*MockContentServiceInterface_Expecter) GetByUser

GetByUser is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • limit int
  • offset int

func (*MockContentServiceInterface_Expecter) GetPublished

GetPublished is a helper method to define mock.On call

  • ctx context.Context
  • limit int
  • offset int

func (*MockContentServiceInterface_Expecter) GetPublishedArchive added in v0.6.0

GetPublishedArchive is a helper method to define mock.On call

  • ctx context.Context
  • postType string
  • languages []string

func (*MockContentServiceInterface_Expecter) GetPublishedAuthor added in v0.7.0

GetPublishedAuthor is a helper method to define mock.On call

  • ctx context.Context
  • username string

func (*MockContentServiceInterface_Expecter) GetPublishedAuthors added in v0.5.0

GetPublishedAuthors is a helper method to define mock.On call

  • ctx context.Context
  • filters content.PublishedAuthorFilters

func (*MockContentServiceInterface_Expecter) GetPublishedByAuthorUsername

func (_e *MockContentServiceInterface_Expecter) GetPublishedByAuthorUsername(ctx any, username any, languages any, limit any, offset any) *MockContentServiceInterface_GetPublishedByAuthorUsername_Call

GetPublishedByAuthorUsername is a helper method to define mock.On call

  • ctx context.Context
  • username string
  • languages []string
  • limit int
  • offset int

func (*MockContentServiceInterface_Expecter) GetPublishedByPostType added in v0.6.0

func (_e *MockContentServiceInterface_Expecter) GetPublishedByPostType(ctx any, postType any, languages any, year any, month any, limit any, offset any) *MockContentServiceInterface_GetPublishedByPostType_Call

GetPublishedByPostType is a helper method to define mock.On call

  • ctx context.Context
  • postType string
  • languages []string
  • year int
  • month int
  • limit int
  • offset int

func (*MockContentServiceInterface_Expecter) GetPublishedBySlug

GetPublishedBySlug is a helper method to define mock.On call

  • ctx context.Context
  • slug string
  • language string

func (*MockContentServiceInterface_Expecter) GetTranslations

func (_e *MockContentServiceInterface_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockContentServiceInterface_GetTranslations_Call

GetTranslations is a helper method to define mock.On call

  • ctx context.Context
  • translationGroupID int
  • excludeID int

func (*MockContentServiceInterface_Expecter) ListByFilters

ListByFilters is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • filters content.ContentFilters

func (*MockContentServiceInterface_Expecter) SearchPublished

SearchPublished is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • limit int

func (*MockContentServiceInterface_Expecter) SetSystemFields

func (_e *MockContentServiceInterface_Expecter) SetSystemFields(ctx any, contentID any, principal any, systemFields any) *MockContentServiceInterface_SetSystemFields_Call

SetSystemFields is a helper method to define mock.On call

  • ctx context.Context
  • contentID int
  • principal kernel.Principal
  • systemFields map[string]any

func (*MockContentServiceInterface_Expecter) Update

Update is a helper method to define mock.On call

  • ctx context.Context
  • id int
  • principal kernel.Principal
  • req content0.UpdateContentRequest

type MockContentServiceInterface_GenerateSlugFromTitle_Call

type MockContentServiceInterface_GenerateSlugFromTitle_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GenerateSlugFromTitle_Call) Return

func (*MockContentServiceInterface_GenerateSlugFromTitle_Call) Run

func (*MockContentServiceInterface_GenerateSlugFromTitle_Call) RunAndReturn

type MockContentServiceInterface_GetAll_Call

type MockContentServiceInterface_GetAll_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetAll_Call) Return

func (*MockContentServiceInterface_GetAll_Call) Run

func (*MockContentServiceInterface_GetAll_Call) RunAndReturn

type MockContentServiceInterface_GetByID_Call

type MockContentServiceInterface_GetByID_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetByID_Call) Return

func (*MockContentServiceInterface_GetByID_Call) Run

func (*MockContentServiceInterface_GetByID_Call) RunAndReturn

type MockContentServiceInterface_GetByUser_Call

type MockContentServiceInterface_GetByUser_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetByUser_Call) Return

func (*MockContentServiceInterface_GetByUser_Call) Run

func (*MockContentServiceInterface_GetByUser_Call) RunAndReturn

type MockContentServiceInterface_GetPublishedArchive_Call added in v0.6.0

type MockContentServiceInterface_GetPublishedArchive_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetPublishedArchive_Call) Return added in v0.6.0

func (*MockContentServiceInterface_GetPublishedArchive_Call) Run added in v0.6.0

func (*MockContentServiceInterface_GetPublishedArchive_Call) RunAndReturn added in v0.6.0

type MockContentServiceInterface_GetPublishedAuthor_Call added in v0.7.0

type MockContentServiceInterface_GetPublishedAuthor_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetPublishedAuthor_Call) Return added in v0.7.0

func (*MockContentServiceInterface_GetPublishedAuthor_Call) Run added in v0.7.0

func (*MockContentServiceInterface_GetPublishedAuthor_Call) RunAndReturn added in v0.7.0

type MockContentServiceInterface_GetPublishedAuthors_Call added in v0.5.0

type MockContentServiceInterface_GetPublishedAuthors_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetPublishedAuthors_Call) Return added in v0.5.0

func (*MockContentServiceInterface_GetPublishedAuthors_Call) Run added in v0.5.0

func (*MockContentServiceInterface_GetPublishedAuthors_Call) RunAndReturn added in v0.5.0

type MockContentServiceInterface_GetPublishedByAuthorUsername_Call

type MockContentServiceInterface_GetPublishedByAuthorUsername_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Return

func (*MockContentServiceInterface_GetPublishedByAuthorUsername_Call) Run

func (*MockContentServiceInterface_GetPublishedByAuthorUsername_Call) RunAndReturn

type MockContentServiceInterface_GetPublishedByPostType_Call added in v0.6.0

type MockContentServiceInterface_GetPublishedByPostType_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetPublishedByPostType_Call) Return added in v0.6.0

func (*MockContentServiceInterface_GetPublishedByPostType_Call) Run added in v0.6.0

func (*MockContentServiceInterface_GetPublishedByPostType_Call) RunAndReturn added in v0.6.0

type MockContentServiceInterface_GetPublishedBySlug_Call

type MockContentServiceInterface_GetPublishedBySlug_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetPublishedBySlug_Call) Return

func (*MockContentServiceInterface_GetPublishedBySlug_Call) Run

func (*MockContentServiceInterface_GetPublishedBySlug_Call) RunAndReturn

type MockContentServiceInterface_GetPublished_Call

type MockContentServiceInterface_GetPublished_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetPublished_Call) Return

func (*MockContentServiceInterface_GetPublished_Call) Run

func (*MockContentServiceInterface_GetPublished_Call) RunAndReturn

type MockContentServiceInterface_GetTranslations_Call

type MockContentServiceInterface_GetTranslations_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_GetTranslations_Call) Return

func (*MockContentServiceInterface_GetTranslations_Call) Run

func (*MockContentServiceInterface_GetTranslations_Call) RunAndReturn

type MockContentServiceInterface_ListByFilters_Call

type MockContentServiceInterface_ListByFilters_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_ListByFilters_Call) Return

func (*MockContentServiceInterface_ListByFilters_Call) Run

func (*MockContentServiceInterface_ListByFilters_Call) RunAndReturn

type MockContentServiceInterface_SearchPublished_Call

type MockContentServiceInterface_SearchPublished_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_SearchPublished_Call) Return

func (*MockContentServiceInterface_SearchPublished_Call) Run

func (*MockContentServiceInterface_SearchPublished_Call) RunAndReturn

type MockContentServiceInterface_SetSystemFields_Call

type MockContentServiceInterface_SetSystemFields_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_SetSystemFields_Call) Return

func (*MockContentServiceInterface_SetSystemFields_Call) Run

func (*MockContentServiceInterface_SetSystemFields_Call) RunAndReturn

type MockContentServiceInterface_Update_Call

type MockContentServiceInterface_Update_Call struct {
	*mock.Call
}

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

func (*MockContentServiceInterface_Update_Call) Return

func (*MockContentServiceInterface_Update_Call) Run

func (*MockContentServiceInterface_Update_Call) RunAndReturn

type MockDashboardServiceInterface

type MockDashboardServiceInterface struct {
	mock.Mock
}

MockDashboardServiceInterface is an autogenerated mock type for the DashboardServiceInterface type

func NewMockDashboardServiceInterface

func NewMockDashboardServiceInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDashboardServiceInterface

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

func (*MockDashboardServiceInterface) GetStats

func (_mock *MockDashboardServiceInterface) GetStats(ctx context.Context, principal kernel.Principal) (*dashboard.Stats, error)

GetStats provides a mock function for the type MockDashboardServiceInterface

type MockDashboardServiceInterface_Expecter

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

func (*MockDashboardServiceInterface_Expecter) GetStats

GetStats is a helper method to define mock.On call

  • ctx context.Context
  • principal kernel.Principal

type MockDashboardServiceInterface_GetStats_Call

type MockDashboardServiceInterface_GetStats_Call struct {
	*mock.Call
}

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

func (*MockDashboardServiceInterface_GetStats_Call) Return

func (*MockDashboardServiceInterface_GetStats_Call) Run

func (*MockDashboardServiceInterface_GetStats_Call) RunAndReturn

type MockPostTypeLister added in v0.9.0

type MockPostTypeLister struct {
	mock.Mock
}

MockPostTypeLister is an autogenerated mock type for the PostTypeLister type

func NewMockPostTypeLister added in v0.9.0

func NewMockPostTypeLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPostTypeLister

NewMockPostTypeLister creates a new instance of MockPostTypeLister. 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 (*MockPostTypeLister) EXPECT added in v0.9.0

func (*MockPostTypeLister) GetAll added in v0.9.0

func (_mock *MockPostTypeLister) GetAll() []posttype.PostType

GetAll provides a mock function for the type MockPostTypeLister

type MockPostTypeLister_Expecter added in v0.9.0

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

func (*MockPostTypeLister_Expecter) GetAll added in v0.9.0

GetAll is a helper method to define mock.On call

type MockPostTypeLister_GetAll_Call added in v0.9.0

type MockPostTypeLister_GetAll_Call struct {
	*mock.Call
}

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

func (*MockPostTypeLister_GetAll_Call) Return added in v0.9.0

func (_c *MockPostTypeLister_GetAll_Call) Return(postTypes []posttype.PostType) *MockPostTypeLister_GetAll_Call

func (*MockPostTypeLister_GetAll_Call) Run added in v0.9.0

func (*MockPostTypeLister_GetAll_Call) RunAndReturn added in v0.9.0

func (_c *MockPostTypeLister_GetAll_Call) RunAndReturn(run func() []posttype.PostType) *MockPostTypeLister_GetAll_Call

type MockPublicFieldLookup added in v0.7.0

type MockPublicFieldLookup struct {
	mock.Mock
}

MockPublicFieldLookup is an autogenerated mock type for the PublicFieldLookup type

func NewMockPublicFieldLookup added in v0.7.0

func NewMockPublicFieldLookup(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPublicFieldLookup

NewMockPublicFieldLookup creates a new instance of MockPublicFieldLookup. 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 (*MockPublicFieldLookup) EXPECT added in v0.7.0

func (*MockPublicFieldLookup) ExposedFields added in v0.7.0

func (_mock *MockPublicFieldLookup) ExposedFields(resource string, postType string) []string

ExposedFields provides a mock function for the type MockPublicFieldLookup

func (*MockPublicFieldLookup) IsQueryable added in v0.7.0

func (_mock *MockPublicFieldLookup) IsQueryable(resource string, postType string, field string, operation string) bool

IsQueryable provides a mock function for the type MockPublicFieldLookup

type MockPublicFieldLookup_Expecter added in v0.7.0

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

func (*MockPublicFieldLookup_Expecter) ExposedFields added in v0.7.0

func (_e *MockPublicFieldLookup_Expecter) ExposedFields(resource any, postType any) *MockPublicFieldLookup_ExposedFields_Call

ExposedFields is a helper method to define mock.On call

  • resource string
  • postType string

func (*MockPublicFieldLookup_Expecter) IsQueryable added in v0.7.0

func (_e *MockPublicFieldLookup_Expecter) IsQueryable(resource any, postType any, field any, operation any) *MockPublicFieldLookup_IsQueryable_Call

IsQueryable is a helper method to define mock.On call

  • resource string
  • postType string
  • field string
  • operation string

type MockPublicFieldLookup_ExposedFields_Call added in v0.7.0

type MockPublicFieldLookup_ExposedFields_Call struct {
	*mock.Call
}

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

func (*MockPublicFieldLookup_ExposedFields_Call) Return added in v0.7.0

func (*MockPublicFieldLookup_ExposedFields_Call) Run added in v0.7.0

func (*MockPublicFieldLookup_ExposedFields_Call) RunAndReturn added in v0.7.0

type MockPublicFieldLookup_IsQueryable_Call added in v0.7.0

type MockPublicFieldLookup_IsQueryable_Call struct {
	*mock.Call
}

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

func (*MockPublicFieldLookup_IsQueryable_Call) Return added in v0.7.0

func (*MockPublicFieldLookup_IsQueryable_Call) Run added in v0.7.0

func (_c *MockPublicFieldLookup_IsQueryable_Call) Run(run func(resource string, postType string, field string, operation string)) *MockPublicFieldLookup_IsQueryable_Call

func (*MockPublicFieldLookup_IsQueryable_Call) RunAndReturn added in v0.7.0

func (_c *MockPublicFieldLookup_IsQueryable_Call) RunAndReturn(run func(resource string, postType string, field string, operation string) bool) *MockPublicFieldLookup_IsQueryable_Call

Jump to

Keyboard shortcuts

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