mocks

package
v0.6.27 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupRepository

type GroupRepository struct {
	mock.Mock
}

GroupRepository is an autogenerated mock type for the GroupRepository type

func NewGroupRepository

func NewGroupRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *GroupRepository

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

func (*GroupRepository) GetBySlug

func (_m *GroupRepository) GetBySlug(ctx context.Context, slug string) (group.Group, error)

GetBySlug provides a mock function with given fields: ctx, slug

type GroupRepository_Expecter

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

func (*GroupRepository_Expecter) GetBySlug

func (_e *GroupRepository_Expecter) GetBySlug(ctx interface{}, slug interface{}) *GroupRepository_GetBySlug_Call

GetBySlug is a helper method to define mock.On call

  • ctx context.Context
  • slug string

type GroupRepository_GetBySlug_Call

type GroupRepository_GetBySlug_Call struct {
	*mock.Call
}

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

func (*GroupRepository_GetBySlug_Call) Return

func (*GroupRepository_GetBySlug_Call) Run

func (*GroupRepository_GetBySlug_Call) RunAndReturn

Jump to

Keyboard shortcuts

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