mocks

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 SubscriptionRepository

type SubscriptionRepository struct {
	mock.Mock
}

SubscriptionRepository is an autogenerated mock type for the Repository type

func NewSubscriptionRepository

func NewSubscriptionRepository(t mockConstructorTestingTNewSubscriptionRepository) *SubscriptionRepository

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

func (*SubscriptionRepository) Create

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

func (*SubscriptionRepository) EXPECT

func (*SubscriptionRepository) Get

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

func (*SubscriptionRepository) List

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

func (*SubscriptionRepository) SoftDelete

func (_m *SubscriptionRepository) SoftDelete(ctx context.Context, id string) error

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

type SubscriptionRepository_Create_Call

type SubscriptionRepository_Create_Call struct {
	*mock.Call
}

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

func (*SubscriptionRepository_Create_Call) Return

func (*SubscriptionRepository_Create_Call) Run

type SubscriptionRepository_Expecter

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

func (*SubscriptionRepository_Expecter) Create

func (_e *SubscriptionRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 silence.Silence

func (*SubscriptionRepository_Expecter) Get

func (_e *SubscriptionRepository_Expecter) Get(ctx interface{}, id interface{}) *SubscriptionRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*SubscriptionRepository_Expecter) List

func (_e *SubscriptionRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *SubscriptionRepository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 silence.Filter

func (*SubscriptionRepository_Expecter) SoftDelete

func (_e *SubscriptionRepository_Expecter) SoftDelete(ctx interface{}, id interface{}) *SubscriptionRepository_SoftDelete_Call

SoftDelete is a helper method to define mock.On call

  • ctx context.Context
  • id string

type SubscriptionRepository_Get_Call

type SubscriptionRepository_Get_Call struct {
	*mock.Call
}

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

func (*SubscriptionRepository_Get_Call) Return

func (*SubscriptionRepository_Get_Call) Run

type SubscriptionRepository_List_Call

type SubscriptionRepository_List_Call struct {
	*mock.Call
}

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

func (*SubscriptionRepository_List_Call) Return

func (*SubscriptionRepository_List_Call) Run

type SubscriptionRepository_SoftDelete_Call

type SubscriptionRepository_SoftDelete_Call struct {
	*mock.Call
}

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

func (*SubscriptionRepository_SoftDelete_Call) Return

func (*SubscriptionRepository_SoftDelete_Call) Run

Jump to

Keyboard shortcuts

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