mocks

package
v0.7.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 AuditLogger

type AuditLogger struct {
	mock.Mock
}

AuditLogger is an autogenerated mock type for the auditLogger type

func (*AuditLogger) EXPECT

func (_m *AuditLogger) EXPECT() *AuditLogger_Expecter

func (*AuditLogger) Log

func (_m *AuditLogger) Log(ctx context.Context, action string, data interface{}) error

Log provides a mock function with given fields: ctx, action, data

type AuditLogger_Expecter

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

func (*AuditLogger_Expecter) Log

func (_e *AuditLogger_Expecter) Log(ctx interface{}, action interface{}, data interface{}) *AuditLogger_Log_Call

Log is a helper method to define mock.On call

  • ctx context.Context
  • action string
  • data interface{}

type AuditLogger_Log_Call

type AuditLogger_Log_Call struct {
	*mock.Call
}

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

func (*AuditLogger_Log_Call) Return

func (*AuditLogger_Log_Call) Run

func (_c *AuditLogger_Log_Call) Run(run func(ctx context.Context, action string, data interface{})) *AuditLogger_Log_Call

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the repository type

func (*Repository) BatchDelete

func (_m *Repository) BatchDelete(_a0 context.Context, _a1 []string) error

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

func (*Repository) BulkUpsert

func (_m *Repository) BulkUpsert(_a0 context.Context, _a1 []*domain.Resource) error

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

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, id string) error

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

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Find

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

func (*Repository) GetOne

func (_m *Repository) GetOne(ctx context.Context, id string) (*domain.Resource, error)

GetOne provides a mock function with given fields: ctx, id

func (*Repository) Update

func (_m *Repository) Update(_a0 context.Context, _a1 *domain.Resource) error

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

type Repository_BatchDelete_Call

type Repository_BatchDelete_Call struct {
	*mock.Call
}

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

func (*Repository_BatchDelete_Call) Return

func (*Repository_BatchDelete_Call) Run

type Repository_BulkUpsert_Call

type Repository_BulkUpsert_Call struct {
	*mock.Call
}

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

func (*Repository_BulkUpsert_Call) Return

func (*Repository_BulkUpsert_Call) Run

type Repository_Delete_Call

type Repository_Delete_Call struct {
	*mock.Call
}

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

func (*Repository_Delete_Call) Return

func (*Repository_Delete_Call) Run

type Repository_Expecter

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

func (*Repository_Expecter) BatchDelete

func (_e *Repository_Expecter) BatchDelete(_a0 interface{}, _a1 interface{}) *Repository_BatchDelete_Call

BatchDelete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []string

func (*Repository_Expecter) BulkUpsert

func (_e *Repository_Expecter) BulkUpsert(_a0 interface{}, _a1 interface{}) *Repository_BulkUpsert_Call

BulkUpsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []*domain.Resource

func (*Repository_Expecter) Delete

func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) Find

func (_e *Repository_Expecter) Find(_a0 interface{}, _a1 interface{}) *Repository_Find_Call

Find is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.ListResourcesFilter

func (*Repository_Expecter) GetOne

func (_e *Repository_Expecter) GetOne(ctx interface{}, id interface{}) *Repository_GetOne_Call

GetOne is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) Update

func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *domain.Resource

type Repository_Find_Call

type Repository_Find_Call struct {
	*mock.Call
}

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

func (*Repository_Find_Call) Return

func (*Repository_Find_Call) Run

type Repository_GetOne_Call

type Repository_GetOne_Call struct {
	*mock.Call
}

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

func (*Repository_GetOne_Call) Return

func (*Repository_GetOne_Call) Run

type Repository_Update_Call

type Repository_Update_Call struct {
	*mock.Call
}

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

func (*Repository_Update_Call) Return

func (*Repository_Update_Call) Run

Jump to

Keyboard shortcuts

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