Documentation
¶
Index ¶
- type MockCommentService
- func (_mock *MockCommentService) CountComments(ctx context.Context, userID int) (int, error)
- func (_mock *MockCommentService) DeleteComment(ctx context.Context, commentID int) error
- func (_mock *MockCommentService) DeleteOwnComment(ctx context.Context, commentID int, principal kernel.Principal) error
- func (_m *MockCommentService) EXPECT() *MockCommentService_Expecter
- func (_mock *MockCommentService) GetComment(ctx context.Context, commentID int) (*comments.Comment, error)
- func (_mock *MockCommentService) GetCommentsByStatus(ctx context.Context, status comments.CommentStatus) ([]*comments.Comment, error)
- func (_mock *MockCommentService) GetCommentsByUserID(ctx context.Context, userID int) ([]*comments.Comment, error)
- func (_mock *MockCommentService) GetCommentsForContent(ctx context.Context, contentID int) ([]*comments.Comment, error)
- func (_mock *MockCommentService) GetCommentsForModeration(ctx context.Context, contentID int) ([]*comments.Comment, error)
- func (_mock *MockCommentService) SubmitComment(ctx context.Context, contentID int, principal kernel.Principal, ...) (*comments.Comment, error)
- func (_mock *MockCommentService) UpdateCommentStatus(ctx context.Context, commentID int, status comments.CommentStatus) error
- type MockCommentService_CountComments_Call
- func (_c *MockCommentService_CountComments_Call) Return(n int, err error) *MockCommentService_CountComments_Call
- func (_c *MockCommentService_CountComments_Call) Run(run func(ctx context.Context, userID int)) *MockCommentService_CountComments_Call
- func (_c *MockCommentService_CountComments_Call) RunAndReturn(run func(ctx context.Context, userID int) (int, error)) *MockCommentService_CountComments_Call
- type MockCommentService_DeleteComment_Call
- func (_c *MockCommentService_DeleteComment_Call) Return(err error) *MockCommentService_DeleteComment_Call
- func (_c *MockCommentService_DeleteComment_Call) Run(run func(ctx context.Context, commentID int)) *MockCommentService_DeleteComment_Call
- func (_c *MockCommentService_DeleteComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) error) *MockCommentService_DeleteComment_Call
- type MockCommentService_DeleteOwnComment_Call
- func (_c *MockCommentService_DeleteOwnComment_Call) Return(err error) *MockCommentService_DeleteOwnComment_Call
- func (_c *MockCommentService_DeleteOwnComment_Call) Run(run func(ctx context.Context, commentID int, principal kernel.Principal)) *MockCommentService_DeleteOwnComment_Call
- func (_c *MockCommentService_DeleteOwnComment_Call) RunAndReturn(run func(ctx context.Context, commentID int, principal kernel.Principal) error) *MockCommentService_DeleteOwnComment_Call
- type MockCommentService_Expecter
- func (_e *MockCommentService_Expecter) CountComments(ctx any, userID any) *MockCommentService_CountComments_Call
- func (_e *MockCommentService_Expecter) DeleteComment(ctx any, commentID any) *MockCommentService_DeleteComment_Call
- func (_e *MockCommentService_Expecter) DeleteOwnComment(ctx any, commentID any, principal any) *MockCommentService_DeleteOwnComment_Call
- func (_e *MockCommentService_Expecter) GetComment(ctx any, commentID any) *MockCommentService_GetComment_Call
- func (_e *MockCommentService_Expecter) GetCommentsByStatus(ctx any, status any) *MockCommentService_GetCommentsByStatus_Call
- func (_e *MockCommentService_Expecter) GetCommentsByUserID(ctx any, userID any) *MockCommentService_GetCommentsByUserID_Call
- func (_e *MockCommentService_Expecter) GetCommentsForContent(ctx any, contentID any) *MockCommentService_GetCommentsForContent_Call
- func (_e *MockCommentService_Expecter) GetCommentsForModeration(ctx any, contentID any) *MockCommentService_GetCommentsForModeration_Call
- func (_e *MockCommentService_Expecter) SubmitComment(ctx any, contentID any, principal any, req any) *MockCommentService_SubmitComment_Call
- func (_e *MockCommentService_Expecter) UpdateCommentStatus(ctx any, commentID any, status any) *MockCommentService_UpdateCommentStatus_Call
- type MockCommentService_GetComment_Call
- func (_c *MockCommentService_GetComment_Call) Return(comment *comments.Comment, err error) *MockCommentService_GetComment_Call
- func (_c *MockCommentService_GetComment_Call) Run(run func(ctx context.Context, commentID int)) *MockCommentService_GetComment_Call
- func (_c *MockCommentService_GetComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) (*comments.Comment, error)) *MockCommentService_GetComment_Call
- type MockCommentService_GetCommentsByStatus_Call
- func (_c *MockCommentService_GetCommentsByStatus_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsByStatus_Call
- func (_c *MockCommentService_GetCommentsByStatus_Call) Run(run func(ctx context.Context, status comments.CommentStatus)) *MockCommentService_GetCommentsByStatus_Call
- func (_c *MockCommentService_GetCommentsByStatus_Call) RunAndReturn(...) *MockCommentService_GetCommentsByStatus_Call
- type MockCommentService_GetCommentsByUserID_Call
- func (_c *MockCommentService_GetCommentsByUserID_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsByUserID_Call
- func (_c *MockCommentService_GetCommentsByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockCommentService_GetCommentsByUserID_Call
- func (_c *MockCommentService_GetCommentsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*comments.Comment, error)) *MockCommentService_GetCommentsByUserID_Call
- type MockCommentService_GetCommentsForContent_Call
- func (_c *MockCommentService_GetCommentsForContent_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsForContent_Call
- func (_c *MockCommentService_GetCommentsForContent_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentService_GetCommentsForContent_Call
- func (_c *MockCommentService_GetCommentsForContent_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*comments.Comment, error)) *MockCommentService_GetCommentsForContent_Call
- type MockCommentService_GetCommentsForModeration_Call
- func (_c *MockCommentService_GetCommentsForModeration_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsForModeration_Call
- func (_c *MockCommentService_GetCommentsForModeration_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentService_GetCommentsForModeration_Call
- func (_c *MockCommentService_GetCommentsForModeration_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*comments.Comment, error)) *MockCommentService_GetCommentsForModeration_Call
- type MockCommentService_SubmitComment_Call
- func (_c *MockCommentService_SubmitComment_Call) Return(comment *comments.Comment, err error) *MockCommentService_SubmitComment_Call
- func (_c *MockCommentService_SubmitComment_Call) Run(run func(ctx context.Context, contentID int, principal kernel.Principal, ...)) *MockCommentService_SubmitComment_Call
- func (_c *MockCommentService_SubmitComment_Call) RunAndReturn(...) *MockCommentService_SubmitComment_Call
- type MockCommentService_UpdateCommentStatus_Call
- func (_c *MockCommentService_UpdateCommentStatus_Call) Return(err error) *MockCommentService_UpdateCommentStatus_Call
- func (_c *MockCommentService_UpdateCommentStatus_Call) Run(run func(ctx context.Context, commentID int, status comments.CommentStatus)) *MockCommentService_UpdateCommentStatus_Call
- func (_c *MockCommentService_UpdateCommentStatus_Call) RunAndReturn(...) *MockCommentService_UpdateCommentStatus_Call
- type MockRoleCapabilities
- type MockRoleCapabilities_CanComment_Call
- func (_c *MockRoleCapabilities_CanComment_Call) Return(b bool) *MockRoleCapabilities_CanComment_Call
- func (_c *MockRoleCapabilities_CanComment_Call) Run(run func(name string)) *MockRoleCapabilities_CanComment_Call
- func (_c *MockRoleCapabilities_CanComment_Call) RunAndReturn(run func(name string) bool) *MockRoleCapabilities_CanComment_Call
- type MockRoleCapabilities_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommentService ¶
MockCommentService is an autogenerated mock type for the CommentService type
func NewMockCommentService ¶
func NewMockCommentService(t interface {
mock.TestingT
Cleanup(func())
}) *MockCommentService
NewMockCommentService creates a new instance of MockCommentService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockCommentService) CountComments ¶
CountComments provides a mock function for the type MockCommentService
func (*MockCommentService) DeleteComment ¶
func (_mock *MockCommentService) DeleteComment(ctx context.Context, commentID int) error
DeleteComment provides a mock function for the type MockCommentService
func (*MockCommentService) DeleteOwnComment ¶
func (_mock *MockCommentService) DeleteOwnComment(ctx context.Context, commentID int, principal kernel.Principal) error
DeleteOwnComment provides a mock function for the type MockCommentService
func (*MockCommentService) EXPECT ¶
func (_m *MockCommentService) EXPECT() *MockCommentService_Expecter
func (*MockCommentService) GetComment ¶
func (_mock *MockCommentService) GetComment(ctx context.Context, commentID int) (*comments.Comment, error)
GetComment provides a mock function for the type MockCommentService
func (*MockCommentService) GetCommentsByStatus ¶
func (_mock *MockCommentService) GetCommentsByStatus(ctx context.Context, status comments.CommentStatus) ([]*comments.Comment, error)
GetCommentsByStatus provides a mock function for the type MockCommentService
func (*MockCommentService) GetCommentsByUserID ¶
func (_mock *MockCommentService) GetCommentsByUserID(ctx context.Context, userID int) ([]*comments.Comment, error)
GetCommentsByUserID provides a mock function for the type MockCommentService
func (*MockCommentService) GetCommentsForContent ¶
func (_mock *MockCommentService) GetCommentsForContent(ctx context.Context, contentID int) ([]*comments.Comment, error)
GetCommentsForContent provides a mock function for the type MockCommentService
func (*MockCommentService) GetCommentsForModeration ¶
func (_mock *MockCommentService) GetCommentsForModeration(ctx context.Context, contentID int) ([]*comments.Comment, error)
GetCommentsForModeration provides a mock function for the type MockCommentService
func (*MockCommentService) SubmitComment ¶
func (_mock *MockCommentService) SubmitComment(ctx context.Context, contentID int, principal kernel.Principal, req comments.CreateCommentRequest) (*comments.Comment, error)
SubmitComment provides a mock function for the type MockCommentService
func (*MockCommentService) UpdateCommentStatus ¶
func (_mock *MockCommentService) UpdateCommentStatus(ctx context.Context, commentID int, status comments.CommentStatus) error
UpdateCommentStatus provides a mock function for the type MockCommentService
type MockCommentService_CountComments_Call ¶
MockCommentService_CountComments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountComments'
func (*MockCommentService_CountComments_Call) Return ¶
func (_c *MockCommentService_CountComments_Call) Return(n int, err error) *MockCommentService_CountComments_Call
func (*MockCommentService_CountComments_Call) Run ¶
func (_c *MockCommentService_CountComments_Call) Run(run func(ctx context.Context, userID int)) *MockCommentService_CountComments_Call
func (*MockCommentService_CountComments_Call) RunAndReturn ¶
func (_c *MockCommentService_CountComments_Call) RunAndReturn(run func(ctx context.Context, userID int) (int, error)) *MockCommentService_CountComments_Call
type MockCommentService_DeleteComment_Call ¶
MockCommentService_DeleteComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteComment'
func (*MockCommentService_DeleteComment_Call) Return ¶
func (_c *MockCommentService_DeleteComment_Call) Return(err error) *MockCommentService_DeleteComment_Call
func (*MockCommentService_DeleteComment_Call) Run ¶
func (_c *MockCommentService_DeleteComment_Call) Run(run func(ctx context.Context, commentID int)) *MockCommentService_DeleteComment_Call
func (*MockCommentService_DeleteComment_Call) RunAndReturn ¶
func (_c *MockCommentService_DeleteComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) error) *MockCommentService_DeleteComment_Call
type MockCommentService_DeleteOwnComment_Call ¶
MockCommentService_DeleteOwnComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOwnComment'
func (*MockCommentService_DeleteOwnComment_Call) Return ¶
func (_c *MockCommentService_DeleteOwnComment_Call) Return(err error) *MockCommentService_DeleteOwnComment_Call
func (*MockCommentService_DeleteOwnComment_Call) Run ¶
func (_c *MockCommentService_DeleteOwnComment_Call) Run(run func(ctx context.Context, commentID int, principal kernel.Principal)) *MockCommentService_DeleteOwnComment_Call
func (*MockCommentService_DeleteOwnComment_Call) RunAndReturn ¶
func (_c *MockCommentService_DeleteOwnComment_Call) RunAndReturn(run func(ctx context.Context, commentID int, principal kernel.Principal) error) *MockCommentService_DeleteOwnComment_Call
type MockCommentService_Expecter ¶
type MockCommentService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCommentService_Expecter) CountComments ¶
func (_e *MockCommentService_Expecter) CountComments(ctx any, userID any) *MockCommentService_CountComments_Call
CountComments is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockCommentService_Expecter) DeleteComment ¶
func (_e *MockCommentService_Expecter) DeleteComment(ctx any, commentID any) *MockCommentService_DeleteComment_Call
DeleteComment is a helper method to define mock.On call
- ctx context.Context
- commentID int
func (*MockCommentService_Expecter) DeleteOwnComment ¶
func (_e *MockCommentService_Expecter) DeleteOwnComment(ctx any, commentID any, principal any) *MockCommentService_DeleteOwnComment_Call
DeleteOwnComment is a helper method to define mock.On call
- ctx context.Context
- commentID int
- principal kernel.Principal
func (*MockCommentService_Expecter) GetComment ¶
func (_e *MockCommentService_Expecter) GetComment(ctx any, commentID any) *MockCommentService_GetComment_Call
GetComment is a helper method to define mock.On call
- ctx context.Context
- commentID int
func (*MockCommentService_Expecter) GetCommentsByStatus ¶
func (_e *MockCommentService_Expecter) GetCommentsByStatus(ctx any, status any) *MockCommentService_GetCommentsByStatus_Call
GetCommentsByStatus is a helper method to define mock.On call
- ctx context.Context
- status comments.CommentStatus
func (*MockCommentService_Expecter) GetCommentsByUserID ¶
func (_e *MockCommentService_Expecter) GetCommentsByUserID(ctx any, userID any) *MockCommentService_GetCommentsByUserID_Call
GetCommentsByUserID is a helper method to define mock.On call
- ctx context.Context
- userID int
func (*MockCommentService_Expecter) GetCommentsForContent ¶
func (_e *MockCommentService_Expecter) GetCommentsForContent(ctx any, contentID any) *MockCommentService_GetCommentsForContent_Call
GetCommentsForContent is a helper method to define mock.On call
- ctx context.Context
- contentID int
func (*MockCommentService_Expecter) GetCommentsForModeration ¶
func (_e *MockCommentService_Expecter) GetCommentsForModeration(ctx any, contentID any) *MockCommentService_GetCommentsForModeration_Call
GetCommentsForModeration is a helper method to define mock.On call
- ctx context.Context
- contentID int
func (*MockCommentService_Expecter) SubmitComment ¶
func (_e *MockCommentService_Expecter) SubmitComment(ctx any, contentID any, principal any, req any) *MockCommentService_SubmitComment_Call
SubmitComment is a helper method to define mock.On call
- ctx context.Context
- contentID int
- principal kernel.Principal
- req comments.CreateCommentRequest
func (*MockCommentService_Expecter) UpdateCommentStatus ¶
func (_e *MockCommentService_Expecter) UpdateCommentStatus(ctx any, commentID any, status any) *MockCommentService_UpdateCommentStatus_Call
UpdateCommentStatus is a helper method to define mock.On call
- ctx context.Context
- commentID int
- status comments.CommentStatus
type MockCommentService_GetComment_Call ¶
MockCommentService_GetComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComment'
func (*MockCommentService_GetComment_Call) Return ¶
func (_c *MockCommentService_GetComment_Call) Return(comment *comments.Comment, err error) *MockCommentService_GetComment_Call
func (*MockCommentService_GetComment_Call) Run ¶
func (_c *MockCommentService_GetComment_Call) Run(run func(ctx context.Context, commentID int)) *MockCommentService_GetComment_Call
func (*MockCommentService_GetComment_Call) RunAndReturn ¶
func (_c *MockCommentService_GetComment_Call) RunAndReturn(run func(ctx context.Context, commentID int) (*comments.Comment, error)) *MockCommentService_GetComment_Call
type MockCommentService_GetCommentsByStatus_Call ¶
MockCommentService_GetCommentsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsByStatus'
func (*MockCommentService_GetCommentsByStatus_Call) Return ¶
func (_c *MockCommentService_GetCommentsByStatus_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsByStatus_Call
func (*MockCommentService_GetCommentsByStatus_Call) Run ¶
func (_c *MockCommentService_GetCommentsByStatus_Call) Run(run func(ctx context.Context, status comments.CommentStatus)) *MockCommentService_GetCommentsByStatus_Call
func (*MockCommentService_GetCommentsByStatus_Call) RunAndReturn ¶
func (_c *MockCommentService_GetCommentsByStatus_Call) RunAndReturn(run func(ctx context.Context, status comments.CommentStatus) ([]*comments.Comment, error)) *MockCommentService_GetCommentsByStatus_Call
type MockCommentService_GetCommentsByUserID_Call ¶
MockCommentService_GetCommentsByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsByUserID'
func (*MockCommentService_GetCommentsByUserID_Call) Return ¶
func (_c *MockCommentService_GetCommentsByUserID_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsByUserID_Call
func (*MockCommentService_GetCommentsByUserID_Call) Run ¶
func (_c *MockCommentService_GetCommentsByUserID_Call) Run(run func(ctx context.Context, userID int)) *MockCommentService_GetCommentsByUserID_Call
func (*MockCommentService_GetCommentsByUserID_Call) RunAndReturn ¶
func (_c *MockCommentService_GetCommentsByUserID_Call) RunAndReturn(run func(ctx context.Context, userID int) ([]*comments.Comment, error)) *MockCommentService_GetCommentsByUserID_Call
type MockCommentService_GetCommentsForContent_Call ¶
MockCommentService_GetCommentsForContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsForContent'
func (*MockCommentService_GetCommentsForContent_Call) Return ¶
func (_c *MockCommentService_GetCommentsForContent_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsForContent_Call
func (*MockCommentService_GetCommentsForContent_Call) Run ¶
func (_c *MockCommentService_GetCommentsForContent_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentService_GetCommentsForContent_Call
func (*MockCommentService_GetCommentsForContent_Call) RunAndReturn ¶
func (_c *MockCommentService_GetCommentsForContent_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*comments.Comment, error)) *MockCommentService_GetCommentsForContent_Call
type MockCommentService_GetCommentsForModeration_Call ¶
MockCommentService_GetCommentsForModeration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommentsForModeration'
func (*MockCommentService_GetCommentsForModeration_Call) Return ¶
func (_c *MockCommentService_GetCommentsForModeration_Call) Return(comments1 []*comments.Comment, err error) *MockCommentService_GetCommentsForModeration_Call
func (*MockCommentService_GetCommentsForModeration_Call) Run ¶
func (_c *MockCommentService_GetCommentsForModeration_Call) Run(run func(ctx context.Context, contentID int)) *MockCommentService_GetCommentsForModeration_Call
func (*MockCommentService_GetCommentsForModeration_Call) RunAndReturn ¶
func (_c *MockCommentService_GetCommentsForModeration_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*comments.Comment, error)) *MockCommentService_GetCommentsForModeration_Call
type MockCommentService_SubmitComment_Call ¶
MockCommentService_SubmitComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubmitComment'
func (*MockCommentService_SubmitComment_Call) Return ¶
func (_c *MockCommentService_SubmitComment_Call) Return(comment *comments.Comment, err error) *MockCommentService_SubmitComment_Call
func (*MockCommentService_SubmitComment_Call) Run ¶
func (_c *MockCommentService_SubmitComment_Call) Run(run func(ctx context.Context, contentID int, principal kernel.Principal, req comments.CreateCommentRequest)) *MockCommentService_SubmitComment_Call
func (*MockCommentService_SubmitComment_Call) RunAndReturn ¶
func (_c *MockCommentService_SubmitComment_Call) RunAndReturn(run func(ctx context.Context, contentID int, principal kernel.Principal, req comments.CreateCommentRequest) (*comments.Comment, error)) *MockCommentService_SubmitComment_Call
type MockCommentService_UpdateCommentStatus_Call ¶
MockCommentService_UpdateCommentStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCommentStatus'
func (*MockCommentService_UpdateCommentStatus_Call) Return ¶
func (_c *MockCommentService_UpdateCommentStatus_Call) Return(err error) *MockCommentService_UpdateCommentStatus_Call
func (*MockCommentService_UpdateCommentStatus_Call) Run ¶
func (_c *MockCommentService_UpdateCommentStatus_Call) Run(run func(ctx context.Context, commentID int, status comments.CommentStatus)) *MockCommentService_UpdateCommentStatus_Call
func (*MockCommentService_UpdateCommentStatus_Call) RunAndReturn ¶
func (_c *MockCommentService_UpdateCommentStatus_Call) RunAndReturn(run func(ctx context.Context, commentID int, status comments.CommentStatus) error) *MockCommentService_UpdateCommentStatus_Call
type MockRoleCapabilities ¶
MockRoleCapabilities is an autogenerated mock type for the RoleCapabilities type
func NewMockRoleCapabilities ¶
func NewMockRoleCapabilities(t interface {
mock.TestingT
Cleanup(func())
}) *MockRoleCapabilities
NewMockRoleCapabilities creates a new instance of MockRoleCapabilities. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRoleCapabilities) CanComment ¶
func (_mock *MockRoleCapabilities) CanComment(name string) bool
CanComment provides a mock function for the type MockRoleCapabilities
func (*MockRoleCapabilities) EXPECT ¶
func (_m *MockRoleCapabilities) EXPECT() *MockRoleCapabilities_Expecter
type MockRoleCapabilities_CanComment_Call ¶
MockRoleCapabilities_CanComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanComment'
func (*MockRoleCapabilities_CanComment_Call) Return ¶
func (_c *MockRoleCapabilities_CanComment_Call) Return(b bool) *MockRoleCapabilities_CanComment_Call
func (*MockRoleCapabilities_CanComment_Call) Run ¶
func (_c *MockRoleCapabilities_CanComment_Call) Run(run func(name string)) *MockRoleCapabilities_CanComment_Call
func (*MockRoleCapabilities_CanComment_Call) RunAndReturn ¶
func (_c *MockRoleCapabilities_CanComment_Call) RunAndReturn(run func(name string) bool) *MockRoleCapabilities_CanComment_Call
type MockRoleCapabilities_Expecter ¶
type MockRoleCapabilities_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRoleCapabilities_Expecter) CanComment ¶
func (_e *MockRoleCapabilities_Expecter) CanComment(name any) *MockRoleCapabilities_CanComment_Call
CanComment is a helper method to define mock.On call
- name string