mocks

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 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 DiscussionRepository

type DiscussionRepository struct {
	mock.Mock
}

DiscussionRepository is an autogenerated mock type for the Repository type

func NewDiscussionRepository added in v0.5.3

func NewDiscussionRepository(t mockConstructorTestingTNewDiscussionRepository) *DiscussionRepository

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

func (*DiscussionRepository) Create

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

func (*DiscussionRepository) CreateComment

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

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

func (*DiscussionRepository) DeleteComment

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

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

func (*DiscussionRepository) EXPECT

func (*DiscussionRepository) Get

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

func (*DiscussionRepository) GetAll

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

func (*DiscussionRepository) GetAllComments

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

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

func (*DiscussionRepository) GetComment

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

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

func (*DiscussionRepository) Patch

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

func (*DiscussionRepository) UpdateComment

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

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

type DiscussionRepository_CreateComment_Call

type DiscussionRepository_CreateComment_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_CreateComment_Call) Return

func (*DiscussionRepository_CreateComment_Call) Run

func (*DiscussionRepository_CreateComment_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_Create_Call

type DiscussionRepository_Create_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_Create_Call) Return

func (*DiscussionRepository_Create_Call) Run

func (*DiscussionRepository_Create_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_DeleteComment_Call

type DiscussionRepository_DeleteComment_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_DeleteComment_Call) Return

func (*DiscussionRepository_DeleteComment_Call) Run

func (*DiscussionRepository_DeleteComment_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_Expecter

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

func (*DiscussionRepository_Expecter) Create

func (_e *DiscussionRepository_Expecter) Create(ctx interface{}, _a1 interface{}) *DiscussionRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *discussion.Discussion

func (*DiscussionRepository_Expecter) CreateComment

func (_e *DiscussionRepository_Expecter) CreateComment(ctx interface{}, cmt interface{}) *DiscussionRepository_CreateComment_Call

CreateComment is a helper method to define mock.On call

  • ctx context.Context
  • cmt *discussion.Comment

func (*DiscussionRepository_Expecter) DeleteComment

func (_e *DiscussionRepository_Expecter) DeleteComment(ctx interface{}, commentID interface{}, discussionID interface{}) *DiscussionRepository_DeleteComment_Call

DeleteComment is a helper method to define mock.On call

  • ctx context.Context
  • commentID string
  • discussionID string

func (*DiscussionRepository_Expecter) Get

func (_e *DiscussionRepository_Expecter) Get(ctx interface{}, did interface{}) *DiscussionRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • did string

func (*DiscussionRepository_Expecter) GetAll

func (_e *DiscussionRepository_Expecter) GetAll(ctx interface{}, filter interface{}) *DiscussionRepository_GetAll_Call

GetAll is a helper method to define mock.On call

  • ctx context.Context
  • filter discussion.Filter

func (*DiscussionRepository_Expecter) GetAllComments

func (_e *DiscussionRepository_Expecter) GetAllComments(ctx interface{}, discussionID interface{}, filter interface{}) *DiscussionRepository_GetAllComments_Call

GetAllComments is a helper method to define mock.On call

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

func (*DiscussionRepository_Expecter) GetComment

func (_e *DiscussionRepository_Expecter) GetComment(ctx interface{}, commentID interface{}, discussionID interface{}) *DiscussionRepository_GetComment_Call

GetComment is a helper method to define mock.On call

  • ctx context.Context
  • commentID string
  • discussionID string

func (*DiscussionRepository_Expecter) Patch

func (_e *DiscussionRepository_Expecter) Patch(ctx interface{}, _a1 interface{}) *DiscussionRepository_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *discussion.Discussion

func (*DiscussionRepository_Expecter) UpdateComment

func (_e *DiscussionRepository_Expecter) UpdateComment(ctx interface{}, cmt interface{}) *DiscussionRepository_UpdateComment_Call

UpdateComment is a helper method to define mock.On call

  • ctx context.Context
  • cmt *discussion.Comment

type DiscussionRepository_GetAllComments_Call

type DiscussionRepository_GetAllComments_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_GetAllComments_Call) Return

func (*DiscussionRepository_GetAllComments_Call) Run

func (*DiscussionRepository_GetAllComments_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_GetAll_Call

type DiscussionRepository_GetAll_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_GetAll_Call) Return

func (*DiscussionRepository_GetAll_Call) Run

func (*DiscussionRepository_GetAll_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_GetComment_Call

type DiscussionRepository_GetComment_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_GetComment_Call) Return

func (*DiscussionRepository_GetComment_Call) Run

func (*DiscussionRepository_GetComment_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_Get_Call

type DiscussionRepository_Get_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_Get_Call) Return

func (*DiscussionRepository_Get_Call) Run

func (*DiscussionRepository_Get_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_Patch_Call

type DiscussionRepository_Patch_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_Patch_Call) Return

func (*DiscussionRepository_Patch_Call) Run

func (*DiscussionRepository_Patch_Call) RunAndReturn added in v0.5.3

type DiscussionRepository_UpdateComment_Call

type DiscussionRepository_UpdateComment_Call struct {
	*mock.Call
}

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

func (*DiscussionRepository_UpdateComment_Call) Return

func (*DiscussionRepository_UpdateComment_Call) Run

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