mocks

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 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 TagRepository

type TagRepository struct {
	mock.Mock
}

TagRepository is an autogenerated mock type for the TagRepository type

func NewTagRepository added in v0.5.3

func NewTagRepository(t mockConstructorTestingTNewTagRepository) *TagRepository

NewTagRepository creates a new instance of TagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TagRepository) Create

func (_m *TagRepository) Create(ctx context.Context, _a1 *tag.Tag) error

Create provides a mock function with given fields: ctx, _a1

func (*TagRepository) Delete

func (_m *TagRepository) Delete(ctx context.Context, filter tag.Tag) error

Delete provides a mock function with given fields: ctx, filter

func (*TagRepository) EXPECT

func (_m *TagRepository) EXPECT() *TagRepository_Expecter

func (*TagRepository) Read

func (_m *TagRepository) Read(ctx context.Context, filter tag.Tag) ([]tag.Tag, error)

Read provides a mock function with given fields: ctx, filter

func (*TagRepository) Update

func (_m *TagRepository) Update(ctx context.Context, _a1 *tag.Tag) error

Update provides a mock function with given fields: ctx, _a1

type TagRepository_Create_Call

type TagRepository_Create_Call struct {
	*mock.Call
}

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

func (*TagRepository_Create_Call) Return

func (*TagRepository_Create_Call) Run

func (*TagRepository_Create_Call) RunAndReturn added in v0.5.3

type TagRepository_Delete_Call

type TagRepository_Delete_Call struct {
	*mock.Call
}

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

func (*TagRepository_Delete_Call) Return

func (*TagRepository_Delete_Call) Run

func (*TagRepository_Delete_Call) RunAndReturn added in v0.5.3

type TagRepository_Expecter

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

func (*TagRepository_Expecter) Create

func (_e *TagRepository_Expecter) Create(ctx interface{}, _a1 interface{}) *TagRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *tag.Tag

func (*TagRepository_Expecter) Delete

func (_e *TagRepository_Expecter) Delete(ctx interface{}, filter interface{}) *TagRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • filter tag.Tag

func (*TagRepository_Expecter) Read

func (_e *TagRepository_Expecter) Read(ctx interface{}, filter interface{}) *TagRepository_Read_Call

Read is a helper method to define mock.On call

  • ctx context.Context
  • filter tag.Tag

func (*TagRepository_Expecter) Update

func (_e *TagRepository_Expecter) Update(ctx interface{}, _a1 interface{}) *TagRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *tag.Tag

type TagRepository_Read_Call

type TagRepository_Read_Call struct {
	*mock.Call
}

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

func (*TagRepository_Read_Call) Return

func (*TagRepository_Read_Call) Run

func (_c *TagRepository_Read_Call) Run(run func(ctx context.Context, filter tag.Tag)) *TagRepository_Read_Call

func (*TagRepository_Read_Call) RunAndReturn added in v0.5.3

func (_c *TagRepository_Read_Call) RunAndReturn(run func(context.Context, tag.Tag) ([]tag.Tag, error)) *TagRepository_Read_Call

type TagRepository_Update_Call

type TagRepository_Update_Call struct {
	*mock.Call
}

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

func (*TagRepository_Update_Call) Return

func (*TagRepository_Update_Call) Run

func (*TagRepository_Update_Call) RunAndReturn added in v0.5.3

type TagTemplateRepository

type TagTemplateRepository struct {
	mock.Mock
}

TagTemplateRepository is an autogenerated mock type for the TagTemplateRepository type

func NewTagTemplateRepository added in v0.5.3

func NewTagTemplateRepository(t mockConstructorTestingTNewTagTemplateRepository) *TagTemplateRepository

NewTagTemplateRepository creates a new instance of TagTemplateRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TagTemplateRepository) Create

func (_m *TagTemplateRepository) Create(ctx context.Context, template *tag.Template) error

Create provides a mock function with given fields: ctx, template

func (*TagTemplateRepository) Delete

func (_m *TagTemplateRepository) Delete(ctx context.Context, templateURN string) error

Delete provides a mock function with given fields: ctx, templateURN

func (*TagTemplateRepository) EXPECT

func (*TagTemplateRepository) Read

func (_m *TagTemplateRepository) Read(ctx context.Context, templateURN string) ([]tag.Template, error)

Read provides a mock function with given fields: ctx, templateURN

func (*TagTemplateRepository) ReadAll

func (_m *TagTemplateRepository) ReadAll(ctx context.Context) ([]tag.Template, error)

ReadAll provides a mock function with given fields: ctx

func (*TagTemplateRepository) Update

func (_m *TagTemplateRepository) Update(ctx context.Context, templateURN string, template *tag.Template) error

Update provides a mock function with given fields: ctx, templateURN, template

type TagTemplateRepository_Create_Call

type TagTemplateRepository_Create_Call struct {
	*mock.Call
}

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

func (*TagTemplateRepository_Create_Call) Return

func (*TagTemplateRepository_Create_Call) Run

func (*TagTemplateRepository_Create_Call) RunAndReturn added in v0.5.3

type TagTemplateRepository_Delete_Call

type TagTemplateRepository_Delete_Call struct {
	*mock.Call
}

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

func (*TagTemplateRepository_Delete_Call) Return

func (*TagTemplateRepository_Delete_Call) Run

func (*TagTemplateRepository_Delete_Call) RunAndReturn added in v0.5.3

type TagTemplateRepository_Expecter

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

func (*TagTemplateRepository_Expecter) Create

func (_e *TagTemplateRepository_Expecter) Create(ctx interface{}, template interface{}) *TagTemplateRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • template *tag.Template

func (*TagTemplateRepository_Expecter) Delete

func (_e *TagTemplateRepository_Expecter) Delete(ctx interface{}, templateURN interface{}) *TagTemplateRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • templateURN string

func (*TagTemplateRepository_Expecter) Read

func (_e *TagTemplateRepository_Expecter) Read(ctx interface{}, templateURN interface{}) *TagTemplateRepository_Read_Call

Read is a helper method to define mock.On call

  • ctx context.Context
  • templateURN string

func (*TagTemplateRepository_Expecter) ReadAll

ReadAll is a helper method to define mock.On call

  • ctx context.Context

func (*TagTemplateRepository_Expecter) Update

func (_e *TagTemplateRepository_Expecter) Update(ctx interface{}, templateURN interface{}, template interface{}) *TagTemplateRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • templateURN string
  • template *tag.Template

type TagTemplateRepository_ReadAll_Call

type TagTemplateRepository_ReadAll_Call struct {
	*mock.Call
}

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

func (*TagTemplateRepository_ReadAll_Call) Return

func (*TagTemplateRepository_ReadAll_Call) Run

func (*TagTemplateRepository_ReadAll_Call) RunAndReturn added in v0.5.3

type TagTemplateRepository_Read_Call

type TagTemplateRepository_Read_Call struct {
	*mock.Call
}

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

func (*TagTemplateRepository_Read_Call) Return

func (*TagTemplateRepository_Read_Call) Run

func (*TagTemplateRepository_Read_Call) RunAndReturn added in v0.5.3

type TagTemplateRepository_Update_Call

type TagTemplateRepository_Update_Call struct {
	*mock.Call
}

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

func (*TagTemplateRepository_Update_Call) Return

func (*TagTemplateRepository_Update_Call) Run

func (*TagTemplateRepository_Update_Call) RunAndReturn added in v0.5.3

Jump to

Keyboard shortcuts

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