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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetService

type AssetService struct {
	mock.Mock
}

AssetService is an autogenerated mock type for the AssetService type

func NewAssetService

func NewAssetService(t mockConstructorTestingTNewAssetService) *AssetService

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

func (*AssetService) AddProbe

func (_m *AssetService) AddProbe(ctx context.Context, assetURN string, probe *asset.Probe) error

AddProbe provides a mock function with given fields: ctx, assetURN, probe

func (*AssetService) DeleteAsset

func (_m *AssetService) DeleteAsset(ctx context.Context, id string) error

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

func (*AssetService) EXPECT

func (_m *AssetService) EXPECT() *AssetService_Expecter

func (*AssetService) GetAllAssets

func (_m *AssetService) GetAllAssets(ctx context.Context, flt asset.Filter, withTotal bool) ([]asset.Asset, uint32, error)

GetAllAssets provides a mock function with given fields: ctx, flt, withTotal

func (*AssetService) GetAssetByID

func (_m *AssetService) GetAssetByID(ctx context.Context, id string) (asset.Asset, error)

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

func (*AssetService) GetAssetByIDWithoutProbes added in v0.6.1

func (_m *AssetService) GetAssetByIDWithoutProbes(ctx context.Context, id string) (asset.Asset, error)

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

func (*AssetService) GetAssetByVersion

func (_m *AssetService) GetAssetByVersion(ctx context.Context, id string, version string) (asset.Asset, error)

GetAssetByVersion provides a mock function with given fields: ctx, id, version

func (*AssetService) GetAssetVersionHistory

func (_m *AssetService) GetAssetVersionHistory(ctx context.Context, flt asset.Filter, id string) ([]asset.Asset, error)

GetAssetVersionHistory provides a mock function with given fields: ctx, flt, id

func (*AssetService) GetLineage

func (_m *AssetService) GetLineage(ctx context.Context, urn string, query asset.LineageQuery) (asset.Lineage, error)

GetLineage provides a mock function with given fields: ctx, urn, query

func (*AssetService) GetTypes

func (_m *AssetService) GetTypes(ctx context.Context, flt asset.Filter) (map[asset.Type]int, error)

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

func (*AssetService) GroupAssets added in v0.5.4

func (_m *AssetService) GroupAssets(ctx context.Context, cfg asset.GroupConfig) ([]asset.GroupResult, error)

GroupAssets provides a mock function with given fields: ctx, cfg

func (*AssetService) SearchAssets

func (_m *AssetService) SearchAssets(ctx context.Context, cfg asset.SearchConfig) ([]asset.SearchResult, error)

SearchAssets provides a mock function with given fields: ctx, cfg

func (*AssetService) SuggestAssets

func (_m *AssetService) SuggestAssets(ctx context.Context, cfg asset.SearchConfig) ([]string, error)

SuggestAssets provides a mock function with given fields: ctx, cfg

func (*AssetService) SyncAssets added in v0.7.0

func (_m *AssetService) SyncAssets(ctx context.Context, services []string) error

SyncAssets provides a mock function with given fields: ctx, services

func (*AssetService) UpsertAsset

func (_m *AssetService) UpsertAsset(ctx context.Context, ast *asset.Asset, upstreams []string, downstreams []string) (string, error)

UpsertAsset provides a mock function with given fields: ctx, ast, upstreams, downstreams

func (*AssetService) UpsertAssetWithoutLineage

func (_m *AssetService) UpsertAssetWithoutLineage(ctx context.Context, ast *asset.Asset) (string, error)

UpsertAssetWithoutLineage provides a mock function with given fields: ctx, ast

type AssetService_AddProbe_Call

type AssetService_AddProbe_Call struct {
	*mock.Call
}

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

func (*AssetService_AddProbe_Call) Return

func (*AssetService_AddProbe_Call) Run

func (_c *AssetService_AddProbe_Call) Run(run func(ctx context.Context, assetURN string, probe *asset.Probe)) *AssetService_AddProbe_Call

func (*AssetService_AddProbe_Call) RunAndReturn added in v0.5.3

type AssetService_DeleteAsset_Call

type AssetService_DeleteAsset_Call struct {
	*mock.Call
}

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

func (*AssetService_DeleteAsset_Call) Return

func (*AssetService_DeleteAsset_Call) Run

func (*AssetService_DeleteAsset_Call) RunAndReturn added in v0.5.3

type AssetService_Expecter

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

func (*AssetService_Expecter) AddProbe

func (_e *AssetService_Expecter) AddProbe(ctx interface{}, assetURN interface{}, probe interface{}) *AssetService_AddProbe_Call

AddProbe is a helper method to define mock.On call

  • ctx context.Context
  • assetURN string
  • probe *asset.Probe

func (*AssetService_Expecter) DeleteAsset

func (_e *AssetService_Expecter) DeleteAsset(ctx interface{}, id interface{}) *AssetService_DeleteAsset_Call

DeleteAsset is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*AssetService_Expecter) GetAllAssets

func (_e *AssetService_Expecter) GetAllAssets(ctx interface{}, flt interface{}, withTotal interface{}) *AssetService_GetAllAssets_Call

GetAllAssets is a helper method to define mock.On call

  • ctx context.Context
  • flt asset.Filter
  • withTotal bool

func (*AssetService_Expecter) GetAssetByID

func (_e *AssetService_Expecter) GetAssetByID(ctx interface{}, id interface{}) *AssetService_GetAssetByID_Call

GetAssetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*AssetService_Expecter) GetAssetByIDWithoutProbes added in v0.6.1

func (_e *AssetService_Expecter) GetAssetByIDWithoutProbes(ctx interface{}, id interface{}) *AssetService_GetAssetByIDWithoutProbes_Call

GetAssetByIDWithoutProbes is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*AssetService_Expecter) GetAssetByVersion

func (_e *AssetService_Expecter) GetAssetByVersion(ctx interface{}, id interface{}, version interface{}) *AssetService_GetAssetByVersion_Call

GetAssetByVersion is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • version string

func (*AssetService_Expecter) GetAssetVersionHistory

func (_e *AssetService_Expecter) GetAssetVersionHistory(ctx interface{}, flt interface{}, id interface{}) *AssetService_GetAssetVersionHistory_Call

GetAssetVersionHistory is a helper method to define mock.On call

  • ctx context.Context
  • flt asset.Filter
  • id string

func (*AssetService_Expecter) GetLineage

func (_e *AssetService_Expecter) GetLineage(ctx interface{}, urn interface{}, query interface{}) *AssetService_GetLineage_Call

GetLineage is a helper method to define mock.On call

  • ctx context.Context
  • urn string
  • query asset.LineageQuery

func (*AssetService_Expecter) GetTypes

func (_e *AssetService_Expecter) GetTypes(ctx interface{}, flt interface{}) *AssetService_GetTypes_Call

GetTypes is a helper method to define mock.On call

  • ctx context.Context
  • flt asset.Filter

func (*AssetService_Expecter) GroupAssets added in v0.5.4

func (_e *AssetService_Expecter) GroupAssets(ctx interface{}, cfg interface{}) *AssetService_GroupAssets_Call

GroupAssets is a helper method to define mock.On call

  • ctx context.Context
  • cfg asset.GroupConfig

func (*AssetService_Expecter) SearchAssets

func (_e *AssetService_Expecter) SearchAssets(ctx interface{}, cfg interface{}) *AssetService_SearchAssets_Call

SearchAssets is a helper method to define mock.On call

  • ctx context.Context
  • cfg asset.SearchConfig

func (*AssetService_Expecter) SuggestAssets

func (_e *AssetService_Expecter) SuggestAssets(ctx interface{}, cfg interface{}) *AssetService_SuggestAssets_Call

SuggestAssets is a helper method to define mock.On call

  • ctx context.Context
  • cfg asset.SearchConfig

func (*AssetService_Expecter) SyncAssets added in v0.7.0

func (_e *AssetService_Expecter) SyncAssets(ctx interface{}, services interface{}) *AssetService_SyncAssets_Call

SyncAssets is a helper method to define mock.On call

  • ctx context.Context
  • services []string

func (*AssetService_Expecter) UpsertAsset

func (_e *AssetService_Expecter) UpsertAsset(ctx interface{}, ast interface{}, upstreams interface{}, downstreams interface{}) *AssetService_UpsertAsset_Call

UpsertAsset is a helper method to define mock.On call

  • ctx context.Context
  • ast *asset.Asset
  • upstreams []string
  • downstreams []string

func (*AssetService_Expecter) UpsertAssetWithoutLineage

func (_e *AssetService_Expecter) UpsertAssetWithoutLineage(ctx interface{}, ast interface{}) *AssetService_UpsertAssetWithoutLineage_Call

UpsertAssetWithoutLineage is a helper method to define mock.On call

  • ctx context.Context
  • ast *asset.Asset

type AssetService_GetAllAssets_Call

type AssetService_GetAllAssets_Call struct {
	*mock.Call
}

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

func (*AssetService_GetAllAssets_Call) Return

func (*AssetService_GetAllAssets_Call) Run

func (*AssetService_GetAllAssets_Call) RunAndReturn added in v0.5.3

type AssetService_GetAssetByIDWithoutProbes_Call added in v0.6.1

type AssetService_GetAssetByIDWithoutProbes_Call struct {
	*mock.Call
}

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

func (*AssetService_GetAssetByIDWithoutProbes_Call) Return added in v0.6.1

func (*AssetService_GetAssetByIDWithoutProbes_Call) Run added in v0.6.1

func (*AssetService_GetAssetByIDWithoutProbes_Call) RunAndReturn added in v0.6.1

type AssetService_GetAssetByID_Call

type AssetService_GetAssetByID_Call struct {
	*mock.Call
}

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

func (*AssetService_GetAssetByID_Call) Return

func (*AssetService_GetAssetByID_Call) Run

func (*AssetService_GetAssetByID_Call) RunAndReturn added in v0.5.3

type AssetService_GetAssetByVersion_Call

type AssetService_GetAssetByVersion_Call struct {
	*mock.Call
}

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

func (*AssetService_GetAssetByVersion_Call) Return

func (*AssetService_GetAssetByVersion_Call) Run

func (*AssetService_GetAssetByVersion_Call) RunAndReturn added in v0.5.3

type AssetService_GetAssetVersionHistory_Call

type AssetService_GetAssetVersionHistory_Call struct {
	*mock.Call
}

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

func (*AssetService_GetAssetVersionHistory_Call) Return

func (*AssetService_GetAssetVersionHistory_Call) Run

func (*AssetService_GetAssetVersionHistory_Call) RunAndReturn added in v0.5.3

type AssetService_GetLineage_Call

type AssetService_GetLineage_Call struct {
	*mock.Call
}

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

func (*AssetService_GetLineage_Call) Return

func (*AssetService_GetLineage_Call) Run

func (*AssetService_GetLineage_Call) RunAndReturn added in v0.5.3

type AssetService_GetTypes_Call

type AssetService_GetTypes_Call struct {
	*mock.Call
}

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

func (*AssetService_GetTypes_Call) Return

func (*AssetService_GetTypes_Call) Run

func (*AssetService_GetTypes_Call) RunAndReturn added in v0.5.3

type AssetService_GroupAssets_Call added in v0.5.4

type AssetService_GroupAssets_Call struct {
	*mock.Call
}

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

func (*AssetService_GroupAssets_Call) Return added in v0.5.4

func (*AssetService_GroupAssets_Call) Run added in v0.5.4

func (*AssetService_GroupAssets_Call) RunAndReturn added in v0.6.0

type AssetService_SearchAssets_Call

type AssetService_SearchAssets_Call struct {
	*mock.Call
}

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

func (*AssetService_SearchAssets_Call) Return

func (*AssetService_SearchAssets_Call) Run

func (*AssetService_SearchAssets_Call) RunAndReturn added in v0.5.3

type AssetService_SuggestAssets_Call

type AssetService_SuggestAssets_Call struct {
	*mock.Call
}

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

func (*AssetService_SuggestAssets_Call) Return

func (*AssetService_SuggestAssets_Call) Run

func (*AssetService_SuggestAssets_Call) RunAndReturn added in v0.5.3

type AssetService_SyncAssets_Call added in v0.7.0

type AssetService_SyncAssets_Call struct {
	*mock.Call
}

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

func (*AssetService_SyncAssets_Call) Return added in v0.7.0

func (*AssetService_SyncAssets_Call) Run added in v0.7.0

func (*AssetService_SyncAssets_Call) RunAndReturn added in v0.7.0

type AssetService_UpsertAssetWithoutLineage_Call

type AssetService_UpsertAssetWithoutLineage_Call struct {
	*mock.Call
}

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

func (*AssetService_UpsertAssetWithoutLineage_Call) Return

func (*AssetService_UpsertAssetWithoutLineage_Call) Run

func (*AssetService_UpsertAssetWithoutLineage_Call) RunAndReturn added in v0.5.3

type AssetService_UpsertAsset_Call

type AssetService_UpsertAsset_Call struct {
	*mock.Call
}

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

func (*AssetService_UpsertAsset_Call) Return

func (*AssetService_UpsertAsset_Call) Run

func (_c *AssetService_UpsertAsset_Call) Run(run func(ctx context.Context, ast *asset.Asset, upstreams []string, downstreams []string)) *AssetService_UpsertAsset_Call

func (*AssetService_UpsertAsset_Call) RunAndReturn added in v0.5.3

type DiscussionService

type DiscussionService struct {
	mock.Mock
}

DiscussionService is an autogenerated mock type for the DiscussionService type

func NewDiscussionService

func NewDiscussionService(t mockConstructorTestingTNewDiscussionService) *DiscussionService

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

func (*DiscussionService) CreateComment

func (_m *DiscussionService) CreateComment(ctx context.Context, cmt *discussion.Comment) (string, error)

CreateComment provides a mock function with given fields: ctx, cmt

func (*DiscussionService) CreateDiscussion

func (_m *DiscussionService) CreateDiscussion(ctx context.Context, _a1 *discussion.Discussion) (string, error)

CreateDiscussion provides a mock function with given fields: ctx, _a1

func (*DiscussionService) DeleteComment

func (_m *DiscussionService) DeleteComment(ctx context.Context, commentID string, discussionID string) error

DeleteComment provides a mock function with given fields: ctx, commentID, discussionID

func (*DiscussionService) EXPECT

func (*DiscussionService) GetComment

func (_m *DiscussionService) GetComment(ctx context.Context, commentID string, discussionID string) (discussion.Comment, error)

GetComment provides a mock function with given fields: ctx, commentID, discussionID

func (*DiscussionService) GetComments

func (_m *DiscussionService) GetComments(ctx context.Context, discussionID string, filter discussion.Filter) ([]discussion.Comment, error)

GetComments provides a mock function with given fields: ctx, discussionID, filter

func (*DiscussionService) GetDiscussion

func (_m *DiscussionService) GetDiscussion(ctx context.Context, did string) (discussion.Discussion, error)

GetDiscussion provides a mock function with given fields: ctx, did

func (*DiscussionService) GetDiscussions

func (_m *DiscussionService) GetDiscussions(ctx context.Context, filter discussion.Filter) ([]discussion.Discussion, error)

GetDiscussions provides a mock function with given fields: ctx, filter

func (*DiscussionService) PatchDiscussion

func (_m *DiscussionService) PatchDiscussion(ctx context.Context, _a1 *discussion.Discussion) error

PatchDiscussion provides a mock function with given fields: ctx, _a1

func (*DiscussionService) UpdateComment

func (_m *DiscussionService) UpdateComment(ctx context.Context, cmt *discussion.Comment) error

UpdateComment provides a mock function with given fields: ctx, cmt

type DiscussionService_CreateComment_Call

type DiscussionService_CreateComment_Call struct {
	*mock.Call
}

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

func (*DiscussionService_CreateComment_Call) Return

func (*DiscussionService_CreateComment_Call) Run

func (*DiscussionService_CreateComment_Call) RunAndReturn added in v0.5.3

type DiscussionService_CreateDiscussion_Call

type DiscussionService_CreateDiscussion_Call struct {
	*mock.Call
}

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

func (*DiscussionService_CreateDiscussion_Call) Return

func (*DiscussionService_CreateDiscussion_Call) Run

func (*DiscussionService_CreateDiscussion_Call) RunAndReturn added in v0.5.3

type DiscussionService_DeleteComment_Call

type DiscussionService_DeleteComment_Call struct {
	*mock.Call
}

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

func (*DiscussionService_DeleteComment_Call) Return

func (*DiscussionService_DeleteComment_Call) Run

func (*DiscussionService_DeleteComment_Call) RunAndReturn added in v0.5.3

type DiscussionService_Expecter

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

func (*DiscussionService_Expecter) CreateComment

func (_e *DiscussionService_Expecter) CreateComment(ctx interface{}, cmt interface{}) *DiscussionService_CreateComment_Call

CreateComment is a helper method to define mock.On call

  • ctx context.Context
  • cmt *discussion.Comment

func (*DiscussionService_Expecter) CreateDiscussion

func (_e *DiscussionService_Expecter) CreateDiscussion(ctx interface{}, _a1 interface{}) *DiscussionService_CreateDiscussion_Call

CreateDiscussion is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *discussion.Discussion

func (*DiscussionService_Expecter) DeleteComment

func (_e *DiscussionService_Expecter) DeleteComment(ctx interface{}, commentID interface{}, discussionID interface{}) *DiscussionService_DeleteComment_Call

DeleteComment is a helper method to define mock.On call

  • ctx context.Context
  • commentID string
  • discussionID string

func (*DiscussionService_Expecter) GetComment

func (_e *DiscussionService_Expecter) GetComment(ctx interface{}, commentID interface{}, discussionID interface{}) *DiscussionService_GetComment_Call

GetComment is a helper method to define mock.On call

  • ctx context.Context
  • commentID string
  • discussionID string

func (*DiscussionService_Expecter) GetComments

func (_e *DiscussionService_Expecter) GetComments(ctx interface{}, discussionID interface{}, filter interface{}) *DiscussionService_GetComments_Call

GetComments is a helper method to define mock.On call

  • ctx context.Context
  • discussionID string
  • filter discussion.Filter

func (*DiscussionService_Expecter) GetDiscussion

func (_e *DiscussionService_Expecter) GetDiscussion(ctx interface{}, did interface{}) *DiscussionService_GetDiscussion_Call

GetDiscussion is a helper method to define mock.On call

  • ctx context.Context
  • did string

func (*DiscussionService_Expecter) GetDiscussions

func (_e *DiscussionService_Expecter) GetDiscussions(ctx interface{}, filter interface{}) *DiscussionService_GetDiscussions_Call

GetDiscussions is a helper method to define mock.On call

  • ctx context.Context
  • filter discussion.Filter

func (*DiscussionService_Expecter) PatchDiscussion

func (_e *DiscussionService_Expecter) PatchDiscussion(ctx interface{}, _a1 interface{}) *DiscussionService_PatchDiscussion_Call

PatchDiscussion is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *discussion.Discussion

func (*DiscussionService_Expecter) UpdateComment

func (_e *DiscussionService_Expecter) UpdateComment(ctx interface{}, cmt interface{}) *DiscussionService_UpdateComment_Call

UpdateComment is a helper method to define mock.On call

  • ctx context.Context
  • cmt *discussion.Comment

type DiscussionService_GetComment_Call

type DiscussionService_GetComment_Call struct {
	*mock.Call
}

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

func (*DiscussionService_GetComment_Call) Return

func (*DiscussionService_GetComment_Call) Run

func (_c *DiscussionService_GetComment_Call) Run(run func(ctx context.Context, commentID string, discussionID string)) *DiscussionService_GetComment_Call

func (*DiscussionService_GetComment_Call) RunAndReturn added in v0.5.3

type DiscussionService_GetComments_Call

type DiscussionService_GetComments_Call struct {
	*mock.Call
}

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

func (*DiscussionService_GetComments_Call) Return

func (*DiscussionService_GetComments_Call) Run

func (*DiscussionService_GetComments_Call) RunAndReturn added in v0.5.3

type DiscussionService_GetDiscussion_Call

type DiscussionService_GetDiscussion_Call struct {
	*mock.Call
}

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

func (*DiscussionService_GetDiscussion_Call) Return

func (*DiscussionService_GetDiscussion_Call) Run

func (*DiscussionService_GetDiscussion_Call) RunAndReturn added in v0.5.3

type DiscussionService_GetDiscussions_Call

type DiscussionService_GetDiscussions_Call struct {
	*mock.Call
}

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

func (*DiscussionService_GetDiscussions_Call) Return

func (*DiscussionService_GetDiscussions_Call) Run

func (*DiscussionService_GetDiscussions_Call) RunAndReturn added in v0.5.3

type DiscussionService_PatchDiscussion_Call

type DiscussionService_PatchDiscussion_Call struct {
	*mock.Call
}

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

func (*DiscussionService_PatchDiscussion_Call) Return

func (*DiscussionService_PatchDiscussion_Call) Run

func (*DiscussionService_PatchDiscussion_Call) RunAndReturn added in v0.5.3

type DiscussionService_UpdateComment_Call

type DiscussionService_UpdateComment_Call struct {
	*mock.Call
}

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

func (*DiscussionService_UpdateComment_Call) Return

func (*DiscussionService_UpdateComment_Call) Run

func (*DiscussionService_UpdateComment_Call) RunAndReturn added in v0.5.3

type StarService

type StarService struct {
	mock.Mock
}

StarService is an autogenerated mock type for the StarService type

func NewStarService

func NewStarService(t mockConstructorTestingTNewStarService) *StarService

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

func (*StarService) EXPECT

func (_m *StarService) EXPECT() *StarService_Expecter

func (*StarService) GetStargazers

func (_m *StarService) GetStargazers(_a0 context.Context, _a1 star.Filter, _a2 string) ([]user.User, error)

GetStargazers provides a mock function with given fields: _a0, _a1, _a2

func (*StarService) GetStarredAssetByUserID

func (_m *StarService) GetStarredAssetByUserID(_a0 context.Context, _a1 string, _a2 string) (asset.Asset, error)

GetStarredAssetByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*StarService) GetStarredAssetsByUserID

func (_m *StarService) GetStarredAssetsByUserID(_a0 context.Context, _a1 star.Filter, _a2 string) ([]asset.Asset, error)

GetStarredAssetsByUserID provides a mock function with given fields: _a0, _a1, _a2

func (*StarService) Stars

func (_m *StarService) Stars(_a0 context.Context, _a1 string, _a2 string) (string, error)

Stars provides a mock function with given fields: _a0, _a1, _a2

func (*StarService) Unstars

func (_m *StarService) Unstars(_a0 context.Context, _a1 string, _a2 string) error

Unstars provides a mock function with given fields: _a0, _a1, _a2

type StarService_Expecter

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

func (*StarService_Expecter) GetStargazers

func (_e *StarService_Expecter) GetStargazers(_a0 interface{}, _a1 interface{}, _a2 interface{}) *StarService_GetStargazers_Call

GetStargazers is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 star.Filter
  • _a2 string

func (*StarService_Expecter) GetStarredAssetByUserID

func (_e *StarService_Expecter) GetStarredAssetByUserID(_a0 interface{}, _a1 interface{}, _a2 interface{}) *StarService_GetStarredAssetByUserID_Call

GetStarredAssetByUserID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

func (*StarService_Expecter) GetStarredAssetsByUserID

func (_e *StarService_Expecter) GetStarredAssetsByUserID(_a0 interface{}, _a1 interface{}, _a2 interface{}) *StarService_GetStarredAssetsByUserID_Call

GetStarredAssetsByUserID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 star.Filter
  • _a2 string

func (*StarService_Expecter) Stars

func (_e *StarService_Expecter) Stars(_a0 interface{}, _a1 interface{}, _a2 interface{}) *StarService_Stars_Call

Stars is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

func (*StarService_Expecter) Unstars

func (_e *StarService_Expecter) Unstars(_a0 interface{}, _a1 interface{}, _a2 interface{}) *StarService_Unstars_Call

Unstars is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

type StarService_GetStargazers_Call

type StarService_GetStargazers_Call struct {
	*mock.Call
}

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

func (*StarService_GetStargazers_Call) Return

func (*StarService_GetStargazers_Call) Run

func (*StarService_GetStargazers_Call) RunAndReturn added in v0.5.3

type StarService_GetStarredAssetByUserID_Call

type StarService_GetStarredAssetByUserID_Call struct {
	*mock.Call
}

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

func (*StarService_GetStarredAssetByUserID_Call) Return

func (*StarService_GetStarredAssetByUserID_Call) Run

func (*StarService_GetStarredAssetByUserID_Call) RunAndReturn added in v0.5.3

type StarService_GetStarredAssetsByUserID_Call

type StarService_GetStarredAssetsByUserID_Call struct {
	*mock.Call
}

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

func (*StarService_GetStarredAssetsByUserID_Call) Return

func (*StarService_GetStarredAssetsByUserID_Call) Run

func (*StarService_GetStarredAssetsByUserID_Call) RunAndReturn added in v0.5.3

type StarService_Stars_Call

type StarService_Stars_Call struct {
	*mock.Call
}

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

func (*StarService_Stars_Call) Return

func (*StarService_Stars_Call) Run

func (_c *StarService_Stars_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *StarService_Stars_Call

func (*StarService_Stars_Call) RunAndReturn added in v0.5.3

type StarService_Unstars_Call

type StarService_Unstars_Call struct {
	*mock.Call
}

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

func (*StarService_Unstars_Call) Return

func (*StarService_Unstars_Call) Run

func (*StarService_Unstars_Call) RunAndReturn added in v0.5.3

type TagService

type TagService struct {
	mock.Mock
}

TagService is an autogenerated mock type for the TagService type

func NewTagService

func NewTagService(t mockConstructorTestingTNewTagService) *TagService

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

func (*TagService) CreateTag

func (_m *TagService) CreateTag(ctx context.Context, _a1 *tag.Tag) error

CreateTag provides a mock function with given fields: ctx, _a1

func (*TagService) DeleteTag

func (_m *TagService) DeleteTag(ctx context.Context, assetID string, templateURN string) error

DeleteTag provides a mock function with given fields: ctx, assetID, templateURN

func (*TagService) EXPECT

func (_m *TagService) EXPECT() *TagService_Expecter

func (*TagService) FindTagByAssetIDAndTemplateURN

func (_m *TagService) FindTagByAssetIDAndTemplateURN(ctx context.Context, assetID string, templateURN string) (tag.Tag, error)

FindTagByAssetIDAndTemplateURN provides a mock function with given fields: ctx, assetID, templateURN

func (*TagService) GetTagsByAssetID

func (_m *TagService) GetTagsByAssetID(ctx context.Context, assetID string) ([]tag.Tag, error)

GetTagsByAssetID provides a mock function with given fields: ctx, assetID

func (*TagService) UpdateTag

func (_m *TagService) UpdateTag(ctx context.Context, _a1 *tag.Tag) error

UpdateTag provides a mock function with given fields: ctx, _a1

func (*TagService) Validate

func (_m *TagService) Validate(_a0 *tag.Tag) error

Validate provides a mock function with given fields: _a0

type TagService_CreateTag_Call

type TagService_CreateTag_Call struct {
	*mock.Call
}

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

func (*TagService_CreateTag_Call) Return

func (*TagService_CreateTag_Call) Run

func (*TagService_CreateTag_Call) RunAndReturn added in v0.5.3

type TagService_DeleteTag_Call

type TagService_DeleteTag_Call struct {
	*mock.Call
}

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

func (*TagService_DeleteTag_Call) Return

func (*TagService_DeleteTag_Call) Run

func (_c *TagService_DeleteTag_Call) Run(run func(ctx context.Context, assetID string, templateURN string)) *TagService_DeleteTag_Call

func (*TagService_DeleteTag_Call) RunAndReturn added in v0.5.3

type TagService_Expecter

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

func (*TagService_Expecter) CreateTag

func (_e *TagService_Expecter) CreateTag(ctx interface{}, _a1 interface{}) *TagService_CreateTag_Call

CreateTag is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *tag.Tag

func (*TagService_Expecter) DeleteTag

func (_e *TagService_Expecter) DeleteTag(ctx interface{}, assetID interface{}, templateURN interface{}) *TagService_DeleteTag_Call

DeleteTag is a helper method to define mock.On call

  • ctx context.Context
  • assetID string
  • templateURN string

func (*TagService_Expecter) FindTagByAssetIDAndTemplateURN

func (_e *TagService_Expecter) FindTagByAssetIDAndTemplateURN(ctx interface{}, assetID interface{}, templateURN interface{}) *TagService_FindTagByAssetIDAndTemplateURN_Call

FindTagByAssetIDAndTemplateURN is a helper method to define mock.On call

  • ctx context.Context
  • assetID string
  • templateURN string

func (*TagService_Expecter) GetTagsByAssetID

func (_e *TagService_Expecter) GetTagsByAssetID(ctx interface{}, assetID interface{}) *TagService_GetTagsByAssetID_Call

GetTagsByAssetID is a helper method to define mock.On call

  • ctx context.Context
  • assetID string

func (*TagService_Expecter) UpdateTag

func (_e *TagService_Expecter) UpdateTag(ctx interface{}, _a1 interface{}) *TagService_UpdateTag_Call

UpdateTag is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *tag.Tag

func (*TagService_Expecter) Validate

func (_e *TagService_Expecter) Validate(_a0 interface{}) *TagService_Validate_Call

Validate is a helper method to define mock.On call

  • _a0 *tag.Tag

type TagService_FindTagByAssetIDAndTemplateURN_Call

type TagService_FindTagByAssetIDAndTemplateURN_Call struct {
	*mock.Call
}

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

func (*TagService_FindTagByAssetIDAndTemplateURN_Call) Return

func (*TagService_FindTagByAssetIDAndTemplateURN_Call) Run

func (*TagService_FindTagByAssetIDAndTemplateURN_Call) RunAndReturn added in v0.5.3

type TagService_GetTagsByAssetID_Call

type TagService_GetTagsByAssetID_Call struct {
	*mock.Call
}

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

func (*TagService_GetTagsByAssetID_Call) Return

func (*TagService_GetTagsByAssetID_Call) Run

func (*TagService_GetTagsByAssetID_Call) RunAndReturn added in v0.5.3

type TagService_UpdateTag_Call

type TagService_UpdateTag_Call struct {
	*mock.Call
}

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

func (*TagService_UpdateTag_Call) Return

func (*TagService_UpdateTag_Call) Run

func (*TagService_UpdateTag_Call) RunAndReturn added in v0.5.3

type TagService_Validate_Call

type TagService_Validate_Call struct {
	*mock.Call
}

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

func (*TagService_Validate_Call) Return

func (*TagService_Validate_Call) Run

func (_c *TagService_Validate_Call) Run(run func(_a0 *tag.Tag)) *TagService_Validate_Call

func (*TagService_Validate_Call) RunAndReturn added in v0.5.3

func (_c *TagService_Validate_Call) RunAndReturn(run func(*tag.Tag) error) *TagService_Validate_Call

type TagTemplateService

type TagTemplateService struct {
	mock.Mock
}

TagTemplateService is an autogenerated mock type for the TagTemplateService type

func NewTagTemplateService

func NewTagTemplateService(t mockConstructorTestingTNewTagTemplateService) *TagTemplateService

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

func (*TagTemplateService) CreateTemplate

func (_m *TagTemplateService) CreateTemplate(ctx context.Context, template *tag.Template) error

CreateTemplate provides a mock function with given fields: ctx, template

func (*TagTemplateService) DeleteTemplate

func (_m *TagTemplateService) DeleteTemplate(ctx context.Context, urn string) error

DeleteTemplate provides a mock function with given fields: ctx, urn

func (*TagTemplateService) EXPECT

func (*TagTemplateService) GetTemplate

func (_m *TagTemplateService) GetTemplate(ctx context.Context, urn string) (tag.Template, error)

GetTemplate provides a mock function with given fields: ctx, urn

func (*TagTemplateService) GetTemplates

func (_m *TagTemplateService) GetTemplates(ctx context.Context, templateURN string) ([]tag.Template, error)

GetTemplates provides a mock function with given fields: ctx, templateURN

func (*TagTemplateService) UpdateTemplate

func (_m *TagTemplateService) UpdateTemplate(ctx context.Context, templateURN string, template *tag.Template) error

UpdateTemplate provides a mock function with given fields: ctx, templateURN, template

func (*TagTemplateService) Validate

func (_m *TagTemplateService) Validate(template tag.Template) error

Validate provides a mock function with given fields: template

type TagTemplateService_CreateTemplate_Call

type TagTemplateService_CreateTemplate_Call struct {
	*mock.Call
}

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

func (*TagTemplateService_CreateTemplate_Call) Return

func (*TagTemplateService_CreateTemplate_Call) Run

func (*TagTemplateService_CreateTemplate_Call) RunAndReturn added in v0.5.3

type TagTemplateService_DeleteTemplate_Call

type TagTemplateService_DeleteTemplate_Call struct {
	*mock.Call
}

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

func (*TagTemplateService_DeleteTemplate_Call) Return

func (*TagTemplateService_DeleteTemplate_Call) Run

func (*TagTemplateService_DeleteTemplate_Call) RunAndReturn added in v0.5.3

type TagTemplateService_Expecter

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

func (*TagTemplateService_Expecter) CreateTemplate

func (_e *TagTemplateService_Expecter) CreateTemplate(ctx interface{}, template interface{}) *TagTemplateService_CreateTemplate_Call

CreateTemplate is a helper method to define mock.On call

  • ctx context.Context
  • template *tag.Template

func (*TagTemplateService_Expecter) DeleteTemplate

func (_e *TagTemplateService_Expecter) DeleteTemplate(ctx interface{}, urn interface{}) *TagTemplateService_DeleteTemplate_Call

DeleteTemplate is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*TagTemplateService_Expecter) GetTemplate

func (_e *TagTemplateService_Expecter) GetTemplate(ctx interface{}, urn interface{}) *TagTemplateService_GetTemplate_Call

GetTemplate is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*TagTemplateService_Expecter) GetTemplates

func (_e *TagTemplateService_Expecter) GetTemplates(ctx interface{}, templateURN interface{}) *TagTemplateService_GetTemplates_Call

GetTemplates is a helper method to define mock.On call

  • ctx context.Context
  • templateURN string

func (*TagTemplateService_Expecter) UpdateTemplate

func (_e *TagTemplateService_Expecter) UpdateTemplate(ctx interface{}, templateURN interface{}, template interface{}) *TagTemplateService_UpdateTemplate_Call

UpdateTemplate is a helper method to define mock.On call

  • ctx context.Context
  • templateURN string
  • template *tag.Template

func (*TagTemplateService_Expecter) Validate

func (_e *TagTemplateService_Expecter) Validate(template interface{}) *TagTemplateService_Validate_Call

Validate is a helper method to define mock.On call

  • template tag.Template

type TagTemplateService_GetTemplate_Call

type TagTemplateService_GetTemplate_Call struct {
	*mock.Call
}

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

func (*TagTemplateService_GetTemplate_Call) Return

func (*TagTemplateService_GetTemplate_Call) Run

func (*TagTemplateService_GetTemplate_Call) RunAndReturn added in v0.5.3

type TagTemplateService_GetTemplates_Call

type TagTemplateService_GetTemplates_Call struct {
	*mock.Call
}

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

func (*TagTemplateService_GetTemplates_Call) Return

func (*TagTemplateService_GetTemplates_Call) Run

func (*TagTemplateService_GetTemplates_Call) RunAndReturn added in v0.5.3

type TagTemplateService_UpdateTemplate_Call

type TagTemplateService_UpdateTemplate_Call struct {
	*mock.Call
}

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

func (*TagTemplateService_UpdateTemplate_Call) Return

func (*TagTemplateService_UpdateTemplate_Call) Run

func (*TagTemplateService_UpdateTemplate_Call) RunAndReturn added in v0.5.3

type TagTemplateService_Validate_Call

type TagTemplateService_Validate_Call struct {
	*mock.Call
}

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

func (*TagTemplateService_Validate_Call) Return

func (*TagTemplateService_Validate_Call) Run

func (*TagTemplateService_Validate_Call) RunAndReturn added in v0.5.3

type UserService

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func NewUserService

func NewUserService(t mockConstructorTestingTNewUserService) *UserService

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

func (*UserService) EXPECT

func (_m *UserService) EXPECT() *UserService_Expecter

func (*UserService) ValidateUser

func (_m *UserService) ValidateUser(ctx context.Context, uuid string, email string) (string, error)

ValidateUser provides a mock function with given fields: ctx, uuid, email

type UserService_Expecter

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

func (*UserService_Expecter) ValidateUser

func (_e *UserService_Expecter) ValidateUser(ctx interface{}, uuid interface{}, email interface{}) *UserService_ValidateUser_Call

ValidateUser is a helper method to define mock.On call

  • ctx context.Context
  • uuid string
  • email string

type UserService_ValidateUser_Call

type UserService_ValidateUser_Call struct {
	*mock.Call
}

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

func (*UserService_ValidateUser_Call) Return

func (*UserService_ValidateUser_Call) Run

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