mocks

package
v0.6.9-cortex-dev Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 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 TemplateRepository

type TemplateRepository struct {
	mock.Mock
}

TemplateRepository is an autogenerated mock type for the Repository type

func NewTemplateRepository

func NewTemplateRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateRepository

NewTemplateRepository creates a new instance of TemplateRepository. 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 (*TemplateRepository) Delete

func (_m *TemplateRepository) Delete(_a0 context.Context, _a1 string) error

Delete provides a mock function with given fields: _a0, _a1

func (*TemplateRepository) EXPECT

func (*TemplateRepository) GetByName

func (_m *TemplateRepository) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)

GetByName provides a mock function with given fields: _a0, _a1

func (*TemplateRepository) List

List provides a mock function with given fields: _a0, _a1

func (*TemplateRepository) Upsert

func (_m *TemplateRepository) Upsert(_a0 context.Context, _a1 *template.Template) error

Upsert provides a mock function with given fields: _a0, _a1

type TemplateRepository_Delete_Call

type TemplateRepository_Delete_Call struct {
	*mock.Call
}

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

func (*TemplateRepository_Delete_Call) Return

func (*TemplateRepository_Delete_Call) Run

func (*TemplateRepository_Delete_Call) RunAndReturn added in v0.6.1

type TemplateRepository_Expecter

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

func (*TemplateRepository_Expecter) Delete

func (_e *TemplateRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateRepository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*TemplateRepository_Expecter) GetByName

func (_e *TemplateRepository_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateRepository_GetByName_Call

GetByName is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*TemplateRepository_Expecter) List

func (_e *TemplateRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateRepository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 template.Filter

func (*TemplateRepository_Expecter) Upsert

func (_e *TemplateRepository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateRepository_Upsert_Call

Upsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *template.Template

type TemplateRepository_GetByName_Call

type TemplateRepository_GetByName_Call struct {
	*mock.Call
}

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

func (*TemplateRepository_GetByName_Call) Return

func (*TemplateRepository_GetByName_Call) Run

func (*TemplateRepository_GetByName_Call) RunAndReturn added in v0.6.1

type TemplateRepository_List_Call

type TemplateRepository_List_Call struct {
	*mock.Call
}

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

func (*TemplateRepository_List_Call) Return

func (*TemplateRepository_List_Call) Run

func (*TemplateRepository_List_Call) RunAndReturn added in v0.6.1

type TemplateRepository_Upsert_Call

type TemplateRepository_Upsert_Call struct {
	*mock.Call
}

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

func (*TemplateRepository_Upsert_Call) Return

func (*TemplateRepository_Upsert_Call) Run

func (*TemplateRepository_Upsert_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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