mocks

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 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 Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) BulkCreate

func (_m *Repository) BulkCreate(_a0 context.Context, _a1 []subscriptionreceiver.Relation) error

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

func (*Repository) BulkDelete

BulkDelete provides a mock function with given fields: ctx, flt

func (*Repository) BulkSoftDelete

func (_m *Repository) BulkSoftDelete(ctx context.Context, flt subscriptionreceiver.DeleteFilter) error

BulkSoftDelete provides a mock function with given fields: ctx, flt

func (*Repository) BulkUpsert

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

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

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) List

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

func (*Repository) Update added in v0.7.6

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

type Repository_BulkCreate_Call

type Repository_BulkCreate_Call struct {
	*mock.Call
}

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

func (*Repository_BulkCreate_Call) Return

func (*Repository_BulkCreate_Call) Run

func (*Repository_BulkCreate_Call) RunAndReturn

type Repository_BulkDelete_Call

type Repository_BulkDelete_Call struct {
	*mock.Call
}

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

func (*Repository_BulkDelete_Call) Return

func (*Repository_BulkDelete_Call) Run

func (*Repository_BulkDelete_Call) RunAndReturn

type Repository_BulkSoftDelete_Call

type Repository_BulkSoftDelete_Call struct {
	*mock.Call
}

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

func (*Repository_BulkSoftDelete_Call) Return

func (*Repository_BulkSoftDelete_Call) Run

func (*Repository_BulkSoftDelete_Call) RunAndReturn

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

func (*Repository_BulkUpsert_Call) RunAndReturn

type Repository_Expecter

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

func (*Repository_Expecter) BulkCreate

func (_e *Repository_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *Repository_BulkCreate_Call

BulkCreate is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []subscriptionreceiver.Relation

func (*Repository_Expecter) BulkDelete

func (_e *Repository_Expecter) BulkDelete(ctx interface{}, flt interface{}) *Repository_BulkDelete_Call

BulkDelete is a helper method to define mock.On call

  • ctx context.Context
  • flt subscriptionreceiver.DeleteFilter

func (*Repository_Expecter) BulkSoftDelete

func (_e *Repository_Expecter) BulkSoftDelete(ctx interface{}, flt interface{}) *Repository_BulkSoftDelete_Call

BulkSoftDelete is a helper method to define mock.On call

  • ctx context.Context
  • flt subscriptionreceiver.DeleteFilter

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 []subscriptionreceiver.Relation

func (*Repository_Expecter) List

func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 subscriptionreceiver.Filter

func (*Repository_Expecter) Update added in v0.7.6

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 *subscriptionreceiver.Relation

type Repository_List_Call

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return

func (*Repository_List_Call) Run

type Repository_Update_Call added in v0.7.6

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 added in v0.7.6

func (*Repository_Update_Call) Run added in v0.7.6

func (*Repository_Update_Call) RunAndReturn added in v0.7.6

type Transactor

type Transactor struct {
	mock.Mock
}

Transactor is an autogenerated mock type for the Transactor type

func NewTransactor

func NewTransactor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Transactor

NewTransactor creates a new instance of Transactor. 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 (*Transactor) Commit

func (_m *Transactor) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*Transactor) EXPECT

func (_m *Transactor) EXPECT() *Transactor_Expecter

func (*Transactor) Rollback

func (_m *Transactor) Rollback(ctx context.Context, err error) error

Rollback provides a mock function with given fields: ctx, err

func (*Transactor) WithTransaction

func (_m *Transactor) WithTransaction(ctx context.Context) context.Context

WithTransaction provides a mock function with given fields: ctx

type Transactor_Commit_Call

type Transactor_Commit_Call struct {
	*mock.Call
}

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

func (*Transactor_Commit_Call) Return

func (*Transactor_Commit_Call) Run

func (*Transactor_Commit_Call) RunAndReturn

func (_c *Transactor_Commit_Call) RunAndReturn(run func(context.Context) error) *Transactor_Commit_Call

type Transactor_Expecter

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

func (*Transactor_Expecter) Commit

func (_e *Transactor_Expecter) Commit(ctx interface{}) *Transactor_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context

func (*Transactor_Expecter) Rollback

func (_e *Transactor_Expecter) Rollback(ctx interface{}, err interface{}) *Transactor_Rollback_Call

Rollback is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*Transactor_Expecter) WithTransaction

func (_e *Transactor_Expecter) WithTransaction(ctx interface{}) *Transactor_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context

type Transactor_Rollback_Call

type Transactor_Rollback_Call struct {
	*mock.Call
}

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

func (*Transactor_Rollback_Call) Return

func (*Transactor_Rollback_Call) Run

func (*Transactor_Rollback_Call) RunAndReturn

type Transactor_WithTransaction_Call

type Transactor_WithTransaction_Call struct {
	*mock.Call
}

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

func (*Transactor_WithTransaction_Call) Return

func (*Transactor_WithTransaction_Call) Run

func (*Transactor_WithTransaction_Call) RunAndReturn

Jump to

Keyboard shortcuts

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