Documentation ¶
Index ¶
- type StarRepository
- func (_m *StarRepository) Create(ctx context.Context, ns *namespace.Namespace, userID string, assetID string) (string, error)
- func (_m *StarRepository) Delete(ctx context.Context, userID string, assetID string) error
- func (_m *StarRepository) EXPECT() *StarRepository_Expecter
- func (_m *StarRepository) GetAllAssetsByUserID(ctx context.Context, flt star.Filter, userID string) ([]asset.Asset, error)
- func (_m *StarRepository) GetAssetByUserID(ctx context.Context, userID string, assetID string) (asset.Asset, error)
- func (_m *StarRepository) GetStargazers(ctx context.Context, flt star.Filter, assetID string) ([]user.User, error)
- type StarRepository_Create_Call
- type StarRepository_Delete_Call
- func (_c *StarRepository_Delete_Call) Return(_a0 error) *StarRepository_Delete_Call
- func (_c *StarRepository_Delete_Call) Run(run func(ctx context.Context, userID string, assetID string)) *StarRepository_Delete_Call
- func (_c *StarRepository_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *StarRepository_Delete_Call
- type StarRepository_Expecter
- func (_e *StarRepository_Expecter) Create(ctx interface{}, ns interface{}, userID interface{}, assetID interface{}) *StarRepository_Create_Call
- func (_e *StarRepository_Expecter) Delete(ctx interface{}, userID interface{}, assetID interface{}) *StarRepository_Delete_Call
- func (_e *StarRepository_Expecter) GetAllAssetsByUserID(ctx interface{}, flt interface{}, userID interface{}) *StarRepository_GetAllAssetsByUserID_Call
- func (_e *StarRepository_Expecter) GetAssetByUserID(ctx interface{}, userID interface{}, assetID interface{}) *StarRepository_GetAssetByUserID_Call
- func (_e *StarRepository_Expecter) GetStargazers(ctx interface{}, flt interface{}, assetID interface{}) *StarRepository_GetStargazers_Call
- type StarRepository_GetAllAssetsByUserID_Call
- func (_c *StarRepository_GetAllAssetsByUserID_Call) Return(_a0 []asset.Asset, _a1 error) *StarRepository_GetAllAssetsByUserID_Call
- func (_c *StarRepository_GetAllAssetsByUserID_Call) Run(run func(ctx context.Context, flt star.Filter, userID string)) *StarRepository_GetAllAssetsByUserID_Call
- func (_c *StarRepository_GetAllAssetsByUserID_Call) RunAndReturn(run func(context.Context, star.Filter, string) ([]asset.Asset, error)) *StarRepository_GetAllAssetsByUserID_Call
- type StarRepository_GetAssetByUserID_Call
- func (_c *StarRepository_GetAssetByUserID_Call) Return(_a0 asset.Asset, _a1 error) *StarRepository_GetAssetByUserID_Call
- func (_c *StarRepository_GetAssetByUserID_Call) Run(run func(ctx context.Context, userID string, assetID string)) *StarRepository_GetAssetByUserID_Call
- func (_c *StarRepository_GetAssetByUserID_Call) RunAndReturn(run func(context.Context, string, string) (asset.Asset, error)) *StarRepository_GetAssetByUserID_Call
- type StarRepository_GetStargazers_Call
- func (_c *StarRepository_GetStargazers_Call) Return(_a0 []user.User, _a1 error) *StarRepository_GetStargazers_Call
- func (_c *StarRepository_GetStargazers_Call) Run(run func(ctx context.Context, flt star.Filter, assetID string)) *StarRepository_GetStargazers_Call
- func (_c *StarRepository_GetStargazers_Call) RunAndReturn(run func(context.Context, star.Filter, string) ([]user.User, error)) *StarRepository_GetStargazers_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StarRepository ¶
StarRepository is an autogenerated mock type for the Repository type
func NewStarRepository ¶
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, ns *namespace.Namespace, userID string, assetID string) (string, error)
Create provides a mock function with given fields: ctx, ns, userID, assetID
func (*StarRepository) Delete ¶
Delete provides a mock function with given fields: ctx, userID, assetID
func (*StarRepository) EXPECT ¶
func (_m *StarRepository) EXPECT() *StarRepository_Expecter
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
type StarRepository_Create_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 (_c *StarRepository_Create_Call) Return(_a0 string, _a1 error) *StarRepository_Create_Call
func (*StarRepository_Create_Call) Run ¶
func (_c *StarRepository_Create_Call) Run(run func(ctx context.Context, ns *namespace.Namespace, userID string, assetID string)) *StarRepository_Create_Call
func (*StarRepository_Create_Call) RunAndReturn ¶
func (_c *StarRepository_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace, string, string) (string, error)) *StarRepository_Create_Call
type StarRepository_Delete_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 (_c *StarRepository_Delete_Call) Return(_a0 error) *StarRepository_Delete_Call
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 ¶
func (_c *StarRepository_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *StarRepository_Delete_Call
type StarRepository_Expecter ¶
type StarRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StarRepository_Expecter) Create ¶
func (_e *StarRepository_Expecter) Create(ctx interface{}, ns interface{}, userID interface{}, assetID interface{}) *StarRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- ns *namespace.Namespace
- 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 ¶
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 (_c *StarRepository_GetAllAssetsByUserID_Call) Return(_a0 []asset.Asset, _a1 error) *StarRepository_GetAllAssetsByUserID_Call
func (*StarRepository_GetAllAssetsByUserID_Call) Run ¶
func (_c *StarRepository_GetAllAssetsByUserID_Call) Run(run func(ctx context.Context, flt star.Filter, userID string)) *StarRepository_GetAllAssetsByUserID_Call
func (*StarRepository_GetAllAssetsByUserID_Call) RunAndReturn ¶
func (_c *StarRepository_GetAllAssetsByUserID_Call) RunAndReturn(run func(context.Context, star.Filter, string) ([]asset.Asset, error)) *StarRepository_GetAllAssetsByUserID_Call
type StarRepository_GetAssetByUserID_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 (_c *StarRepository_GetAssetByUserID_Call) Return(_a0 asset.Asset, _a1 error) *StarRepository_GetAssetByUserID_Call
func (*StarRepository_GetAssetByUserID_Call) Run ¶
func (_c *StarRepository_GetAssetByUserID_Call) Run(run func(ctx context.Context, userID string, assetID string)) *StarRepository_GetAssetByUserID_Call
func (*StarRepository_GetAssetByUserID_Call) RunAndReturn ¶
func (_c *StarRepository_GetAssetByUserID_Call) RunAndReturn(run func(context.Context, string, string) (asset.Asset, error)) *StarRepository_GetAssetByUserID_Call
type StarRepository_GetStargazers_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 (_c *StarRepository_GetStargazers_Call) Return(_a0 []user.User, _a1 error) *StarRepository_GetStargazers_Call
func (*StarRepository_GetStargazers_Call) Run ¶
func (_c *StarRepository_GetStargazers_Call) Run(run func(ctx context.Context, flt star.Filter, assetID string)) *StarRepository_GetStargazers_Call
func (*StarRepository_GetStargazers_Call) RunAndReturn ¶
func (_c *StarRepository_GetStargazers_Call) RunAndReturn(run func(context.Context, star.Filter, string) ([]user.User, error)) *StarRepository_GetStargazers_Call