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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StarRepository

type StarRepository struct {
	mock.Mock
}

StarRepository is an autogenerated mock type for the Repository type

func NewStarRepository added in v0.5.3

func NewStarRepository(t mockConstructorTestingTNewStarRepository) *StarRepository

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

func (*StarRepository) Create

func (_m *StarRepository) Create(ctx context.Context, userID string, assetID string) (string, error)

Create provides a mock function with given fields: ctx, userID, assetID

func (*StarRepository) Delete

func (_m *StarRepository) Delete(ctx context.Context, userID string, assetID string) error

Delete provides a mock function with given fields: ctx, userID, assetID

func (*StarRepository) EXPECT

func (*StarRepository) GetAllAssetsByUserID

func (_m *StarRepository) GetAllAssetsByUserID(ctx context.Context, flt star.Filter, userID string) ([]asset.Asset, error)

GetAllAssetsByUserID provides a mock function with given fields: ctx, flt, userID

func (*StarRepository) GetAssetByUserID

func (_m *StarRepository) GetAssetByUserID(ctx context.Context, userID string, assetID string) (asset.Asset, error)

GetAssetByUserID provides a mock function with given fields: ctx, userID, assetID

func (*StarRepository) GetStargazers

func (_m *StarRepository) GetStargazers(ctx context.Context, flt star.Filter, assetID string) ([]user.User, error)

GetStargazers provides a mock function with given fields: ctx, flt, assetID

type StarRepository_Create_Call

type StarRepository_Create_Call struct {
	*mock.Call
}

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

func (*StarRepository_Create_Call) Return

func (*StarRepository_Create_Call) Run

func (_c *StarRepository_Create_Call) Run(run func(ctx context.Context, userID string, assetID string)) *StarRepository_Create_Call

func (*StarRepository_Create_Call) RunAndReturn added in v0.5.3

type StarRepository_Delete_Call

type StarRepository_Delete_Call struct {
	*mock.Call
}

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

func (*StarRepository_Delete_Call) Return

func (*StarRepository_Delete_Call) Run

func (_c *StarRepository_Delete_Call) Run(run func(ctx context.Context, userID string, assetID string)) *StarRepository_Delete_Call

func (*StarRepository_Delete_Call) RunAndReturn added in v0.5.3

type StarRepository_Expecter

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

func (*StarRepository_Expecter) Create

func (_e *StarRepository_Expecter) Create(ctx interface{}, userID interface{}, assetID interface{}) *StarRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • assetID string

func (*StarRepository_Expecter) Delete

func (_e *StarRepository_Expecter) Delete(ctx interface{}, userID interface{}, assetID interface{}) *StarRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • assetID string

func (*StarRepository_Expecter) GetAllAssetsByUserID

func (_e *StarRepository_Expecter) GetAllAssetsByUserID(ctx interface{}, flt interface{}, userID interface{}) *StarRepository_GetAllAssetsByUserID_Call

GetAllAssetsByUserID is a helper method to define mock.On call

  • ctx context.Context
  • flt star.Filter
  • userID string

func (*StarRepository_Expecter) GetAssetByUserID

func (_e *StarRepository_Expecter) GetAssetByUserID(ctx interface{}, userID interface{}, assetID interface{}) *StarRepository_GetAssetByUserID_Call

GetAssetByUserID is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • assetID string

func (*StarRepository_Expecter) GetStargazers

func (_e *StarRepository_Expecter) GetStargazers(ctx interface{}, flt interface{}, assetID interface{}) *StarRepository_GetStargazers_Call

GetStargazers is a helper method to define mock.On call

  • ctx context.Context
  • flt star.Filter
  • assetID string

type StarRepository_GetAllAssetsByUserID_Call

type StarRepository_GetAllAssetsByUserID_Call struct {
	*mock.Call
}

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

func (*StarRepository_GetAllAssetsByUserID_Call) Return

func (*StarRepository_GetAllAssetsByUserID_Call) Run

func (*StarRepository_GetAllAssetsByUserID_Call) RunAndReturn added in v0.5.3

type StarRepository_GetAssetByUserID_Call

type StarRepository_GetAssetByUserID_Call struct {
	*mock.Call
}

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

func (*StarRepository_GetAssetByUserID_Call) Return

func (*StarRepository_GetAssetByUserID_Call) Run

func (*StarRepository_GetAssetByUserID_Call) RunAndReturn added in v0.5.3

type StarRepository_GetStargazers_Call

type StarRepository_GetStargazers_Call struct {
	*mock.Call
}

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

func (*StarRepository_GetStargazers_Call) Return

func (*StarRepository_GetStargazers_Call) Run

func (*StarRepository_GetStargazers_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