Documentation ¶
Index ¶
- type FeedManagerMock
- func (mmAddComment *FeedManagerMock) AddComment(ctx context.Context, userID int, tweetID int, text string) (id int, err error)
- func (mmAddComment *FeedManagerMock) AddCommentAfterCounter() uint64
- func (mmAddComment *FeedManagerMock) AddCommentBeforeCounter() uint64
- func (mmAddFollower *FeedManagerMock) AddFollower(ctx context.Context, userID int, toUserID int) (err error)
- func (mmAddFollower *FeedManagerMock) AddFollowerAfterCounter() uint64
- func (mmAddFollower *FeedManagerMock) AddFollowerBeforeCounter() uint64
- func (mmAddTweet *FeedManagerMock) AddTweet(ctx context.Context, userID int, text string) (id int, err error)
- func (mmAddTweet *FeedManagerMock) AddTweetAfterCounter() uint64
- func (mmAddTweet *FeedManagerMock) AddTweetBeforeCounter() uint64
- func (mmEditComment *FeedManagerMock) EditComment(ctx context.Context, commentID int, text string) (err error)
- func (mmEditComment *FeedManagerMock) EditCommentAfterCounter() uint64
- func (mmEditComment *FeedManagerMock) EditCommentBeforeCounter() uint64
- func (mmEditTweet *FeedManagerMock) EditTweet(ctx context.Context, tweetID int, text string) (err error)
- func (mmEditTweet *FeedManagerMock) EditTweetAfterCounter() uint64
- func (mmEditTweet *FeedManagerMock) EditTweetBeforeCounter() uint64
- func (mmGetFollowers *FeedManagerMock) GetFollowers(ctx context.Context, userID int) (ua1 []entity.User, err error)
- func (mmGetFollowers *FeedManagerMock) GetFollowersAfterCounter() uint64
- func (mmGetFollowers *FeedManagerMock) GetFollowersBeforeCounter() uint64
- func (mmGetFollowing *FeedManagerMock) GetFollowing(ctx context.Context, userID int) (ua1 []entity.User, err error)
- func (mmGetFollowing *FeedManagerMock) GetFollowingAfterCounter() uint64
- func (mmGetFollowing *FeedManagerMock) GetFollowingBeforeCounter() uint64
- func (mmGetNewsFeed *FeedManagerMock) GetNewsFeed(ctx context.Context, userID int) (ta1 []entity.Tweet, err error)
- func (mmGetNewsFeed *FeedManagerMock) GetNewsFeedAfterCounter() uint64
- func (mmGetNewsFeed *FeedManagerMock) GetNewsFeedBeforeCounter() uint64
- func (mmGetRecommendedUsers *FeedManagerMock) GetRecommendedUsers(ctx context.Context, userID int) (ua1 []entity.User, err error)
- func (mmGetRecommendedUsers *FeedManagerMock) GetRecommendedUsersAfterCounter() uint64
- func (mmGetRecommendedUsers *FeedManagerMock) GetRecommendedUsersBeforeCounter() uint64
- func (m *FeedManagerMock) MinimockAddCommentDone() bool
- func (m *FeedManagerMock) MinimockAddCommentInspect()
- func (m *FeedManagerMock) MinimockAddFollowerDone() bool
- func (m *FeedManagerMock) MinimockAddFollowerInspect()
- func (m *FeedManagerMock) MinimockAddTweetDone() bool
- func (m *FeedManagerMock) MinimockAddTweetInspect()
- func (m *FeedManagerMock) MinimockEditCommentDone() bool
- func (m *FeedManagerMock) MinimockEditCommentInspect()
- func (m *FeedManagerMock) MinimockEditTweetDone() bool
- func (m *FeedManagerMock) MinimockEditTweetInspect()
- func (m *FeedManagerMock) MinimockFinish()
- func (m *FeedManagerMock) MinimockGetFollowersDone() bool
- func (m *FeedManagerMock) MinimockGetFollowersInspect()
- func (m *FeedManagerMock) MinimockGetFollowingDone() bool
- func (m *FeedManagerMock) MinimockGetFollowingInspect()
- func (m *FeedManagerMock) MinimockGetNewsFeedDone() bool
- func (m *FeedManagerMock) MinimockGetNewsFeedInspect()
- func (m *FeedManagerMock) MinimockGetRecommendedUsersDone() bool
- func (m *FeedManagerMock) MinimockGetRecommendedUsersInspect()
- func (m *FeedManagerMock) MinimockRemoveFollowerDone() bool
- func (m *FeedManagerMock) MinimockRemoveFollowerInspect()
- func (m *FeedManagerMock) MinimockWait(timeout mm_time.Duration)
- func (mmRemoveFollower *FeedManagerMock) RemoveFollower(ctx context.Context, userID int, fromUserID int) (err error)
- func (mmRemoveFollower *FeedManagerMock) RemoveFollowerAfterCounter() uint64
- func (mmRemoveFollower *FeedManagerMock) RemoveFollowerBeforeCounter() uint64
- type FeedManagerMockAddCommentExpectation
- type FeedManagerMockAddCommentParams
- type FeedManagerMockAddCommentResults
- type FeedManagerMockAddFollowerExpectation
- type FeedManagerMockAddFollowerParams
- type FeedManagerMockAddFollowerResults
- type FeedManagerMockAddTweetExpectation
- type FeedManagerMockAddTweetParams
- type FeedManagerMockAddTweetResults
- type FeedManagerMockEditCommentExpectation
- type FeedManagerMockEditCommentParams
- type FeedManagerMockEditCommentResults
- type FeedManagerMockEditTweetExpectation
- type FeedManagerMockEditTweetParams
- type FeedManagerMockEditTweetResults
- type FeedManagerMockGetFollowersExpectation
- type FeedManagerMockGetFollowersParams
- type FeedManagerMockGetFollowersResults
- type FeedManagerMockGetFollowingExpectation
- type FeedManagerMockGetFollowingParams
- type FeedManagerMockGetFollowingResults
- type FeedManagerMockGetNewsFeedExpectation
- type FeedManagerMockGetNewsFeedParams
- type FeedManagerMockGetNewsFeedResults
- type FeedManagerMockGetRecommendedUsersExpectation
- type FeedManagerMockGetRecommendedUsersParams
- type FeedManagerMockGetRecommendedUsersResults
- type FeedManagerMockRemoveFollowerExpectation
- type FeedManagerMockRemoveFollowerParams
- type FeedManagerMockRemoveFollowerResults
- type FollowerRepositoryMock
- func (mmAdd *FollowerRepositoryMock) Add(ctx context.Context, followerID int, toUserID int) (err error)
- func (mmAdd *FollowerRepositoryMock) AddAfterCounter() uint64
- func (mmAdd *FollowerRepositoryMock) AddBeforeCounter() uint64
- func (mmGetFollowers *FollowerRepositoryMock) GetFollowers(ctx context.Context, userID int, topN int) (ia1 []int, err error)
- func (mmGetFollowers *FollowerRepositoryMock) GetFollowersAfterCounter() uint64
- func (mmGetFollowers *FollowerRepositoryMock) GetFollowersBeforeCounter() uint64
- func (mmGetFollowing *FollowerRepositoryMock) GetFollowing(ctx context.Context, userID int, topN int) (ia1 []int, err error)
- func (mmGetFollowing *FollowerRepositoryMock) GetFollowingAfterCounter() uint64
- func (mmGetFollowing *FollowerRepositoryMock) GetFollowingBeforeCounter() uint64
- func (m *FollowerRepositoryMock) MinimockAddDone() bool
- func (m *FollowerRepositoryMock) MinimockAddInspect()
- func (m *FollowerRepositoryMock) MinimockFinish()
- func (m *FollowerRepositoryMock) MinimockGetFollowersDone() bool
- func (m *FollowerRepositoryMock) MinimockGetFollowersInspect()
- func (m *FollowerRepositoryMock) MinimockGetFollowingDone() bool
- func (m *FollowerRepositoryMock) MinimockGetFollowingInspect()
- func (m *FollowerRepositoryMock) MinimockRemoveDone() bool
- func (m *FollowerRepositoryMock) MinimockRemoveInspect()
- func (m *FollowerRepositoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmRemove *FollowerRepositoryMock) Remove(ctx context.Context, followerID int, fromUserID int) (err error)
- func (mmRemove *FollowerRepositoryMock) RemoveAfterCounter() uint64
- func (mmRemove *FollowerRepositoryMock) RemoveBeforeCounter() uint64
- type FollowerRepositoryMockAddExpectation
- type FollowerRepositoryMockAddParams
- type FollowerRepositoryMockAddResults
- type FollowerRepositoryMockGetFollowersExpectation
- type FollowerRepositoryMockGetFollowersParams
- type FollowerRepositoryMockGetFollowersResults
- type FollowerRepositoryMockGetFollowingExpectation
- type FollowerRepositoryMockGetFollowingParams
- type FollowerRepositoryMockGetFollowingResults
- type FollowerRepositoryMockRemoveExpectation
- type FollowerRepositoryMockRemoveParams
- type FollowerRepositoryMockRemoveResults
- type ScamDetectorClientMock
- func (mmCheckEmail *ScamDetectorClientMock) CheckEmail(ctx context.Context, email string) (err error)
- func (mmCheckEmail *ScamDetectorClientMock) CheckEmailAfterCounter() uint64
- func (mmCheckEmail *ScamDetectorClientMock) CheckEmailBeforeCounter() uint64
- func (m *ScamDetectorClientMock) MinimockCheckEmailDone() bool
- func (m *ScamDetectorClientMock) MinimockCheckEmailInspect()
- func (m *ScamDetectorClientMock) MinimockFinish()
- func (m *ScamDetectorClientMock) MinimockWait(timeout mm_time.Duration)
- type ScamDetectorClientMockCheckEmailExpectation
- type ScamDetectorClientMockCheckEmailParams
- type ScamDetectorClientMockCheckEmailResults
- type TweetRepositoryMock
- func (mmAdd *TweetRepositoryMock) Add(ctx context.Context, userID int, tweetText string) (id int, err error)
- func (mmAdd *TweetRepositoryMock) AddAfterCounter() uint64
- func (mmAdd *TweetRepositoryMock) AddBeforeCounter() uint64
- func (mmAddComment *TweetRepositoryMock) AddComment(ctx context.Context, userID int, tweetID int, commentText string) (id int, err error)
- func (mmAddComment *TweetRepositoryMock) AddCommentAfterCounter() uint64
- func (mmAddComment *TweetRepositoryMock) AddCommentBeforeCounter() uint64
- func (mmGetLatest *TweetRepositoryMock) GetLatest(ctx context.Context, userID int, limit int) (ta1 []entity.Tweet, err error)
- func (mmGetLatest *TweetRepositoryMock) GetLatestAfterCounter() uint64
- func (mmGetLatest *TweetRepositoryMock) GetLatestBeforeCounter() uint64
- func (m *TweetRepositoryMock) MinimockAddCommentDone() bool
- func (m *TweetRepositoryMock) MinimockAddCommentInspect()
- func (m *TweetRepositoryMock) MinimockAddDone() bool
- func (m *TweetRepositoryMock) MinimockAddInspect()
- func (m *TweetRepositoryMock) MinimockFinish()
- func (m *TweetRepositoryMock) MinimockGetLatestDone() bool
- func (m *TweetRepositoryMock) MinimockGetLatestInspect()
- func (m *TweetRepositoryMock) MinimockUpdateCommentDone() bool
- func (m *TweetRepositoryMock) MinimockUpdateCommentInspect()
- func (m *TweetRepositoryMock) MinimockUpdateDone() bool
- func (m *TweetRepositoryMock) MinimockUpdateInspect()
- func (m *TweetRepositoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmUpdate *TweetRepositoryMock) Update(ctx context.Context, tweetID int, newText string) (err error)
- func (mmUpdate *TweetRepositoryMock) UpdateAfterCounter() uint64
- func (mmUpdate *TweetRepositoryMock) UpdateBeforeCounter() uint64
- func (mmUpdateComment *TweetRepositoryMock) UpdateComment(ctx context.Context, commentID int, newText string) (err error)
- func (mmUpdateComment *TweetRepositoryMock) UpdateCommentAfterCounter() uint64
- func (mmUpdateComment *TweetRepositoryMock) UpdateCommentBeforeCounter() uint64
- type TweetRepositoryMockAddCommentExpectation
- type TweetRepositoryMockAddCommentParams
- type TweetRepositoryMockAddCommentResults
- type TweetRepositoryMockAddExpectation
- type TweetRepositoryMockAddParams
- type TweetRepositoryMockAddResults
- type TweetRepositoryMockGetLatestExpectation
- type TweetRepositoryMockGetLatestParams
- type TweetRepositoryMockGetLatestResults
- type TweetRepositoryMockUpdateCommentExpectation
- type TweetRepositoryMockUpdateCommentParams
- type TweetRepositoryMockUpdateCommentResults
- type TweetRepositoryMockUpdateExpectation
- type TweetRepositoryMockUpdateParams
- type TweetRepositoryMockUpdateResults
- type UserProfilerMock
- func (mmDeactivate *UserProfilerMock) Deactivate(ctx context.Context, userID int) (err error)
- func (mmDeactivate *UserProfilerMock) DeactivateAfterCounter() uint64
- func (mmDeactivate *UserProfilerMock) DeactivateBeforeCounter() uint64
- func (mmLogin *UserProfilerMock) Login(ctx context.Context, email string) (up1 *entity.User, err error)
- func (mmLogin *UserProfilerMock) LoginAfterCounter() uint64
- func (mmLogin *UserProfilerMock) LoginBeforeCounter() uint64
- func (m *UserProfilerMock) MinimockDeactivateDone() bool
- func (m *UserProfilerMock) MinimockDeactivateInspect()
- func (m *UserProfilerMock) MinimockFinish()
- func (m *UserProfilerMock) MinimockLoginDone() bool
- func (m *UserProfilerMock) MinimockLoginInspect()
- func (m *UserProfilerMock) MinimockRegisterDone() bool
- func (m *UserProfilerMock) MinimockRegisterInspect()
- func (m *UserProfilerMock) MinimockUpdateCaptionDone() bool
- func (m *UserProfilerMock) MinimockUpdateCaptionInspect()
- func (m *UserProfilerMock) MinimockWait(timeout mm_time.Duration)
- func (mmRegister *UserProfilerMock) Register(ctx context.Context, name string, email string, caption string, ...) (up1 *entity.User, err error)
- func (mmRegister *UserProfilerMock) RegisterAfterCounter() uint64
- func (mmRegister *UserProfilerMock) RegisterBeforeCounter() uint64
- func (mmUpdateCaption *UserProfilerMock) UpdateCaption(ctx context.Context, userID int, newCaption string) (err error)
- func (mmUpdateCaption *UserProfilerMock) UpdateCaptionAfterCounter() uint64
- func (mmUpdateCaption *UserProfilerMock) UpdateCaptionBeforeCounter() uint64
- type UserProfilerMockDeactivateExpectation
- type UserProfilerMockDeactivateParams
- type UserProfilerMockDeactivateResults
- type UserProfilerMockLoginExpectation
- type UserProfilerMockLoginParams
- type UserProfilerMockLoginResults
- type UserProfilerMockRegisterExpectation
- type UserProfilerMockRegisterParams
- type UserProfilerMockRegisterResults
- type UserProfilerMockUpdateCaptionExpectation
- type UserProfilerMockUpdateCaptionParams
- type UserProfilerMockUpdateCaptionResults
- type UserRegistratorMock
- func (mmDeactivate *UserRegistratorMock) Deactivate(ctx context.Context, userID int) (err error)
- func (mmDeactivate *UserRegistratorMock) DeactivateAfterCounter() uint64
- func (mmDeactivate *UserRegistratorMock) DeactivateBeforeCounter() uint64
- func (mmLogin *UserRegistratorMock) Login(ctx context.Context, email string) (up1 *entity.User, err error)
- func (mmLogin *UserRegistratorMock) LoginAfterCounter() uint64
- func (mmLogin *UserRegistratorMock) LoginBeforeCounter() uint64
- func (m *UserRegistratorMock) MinimockDeactivateDone() bool
- func (m *UserRegistratorMock) MinimockDeactivateInspect()
- func (m *UserRegistratorMock) MinimockFinish()
- func (m *UserRegistratorMock) MinimockLoginDone() bool
- func (m *UserRegistratorMock) MinimockLoginInspect()
- func (m *UserRegistratorMock) MinimockRegisterDone() bool
- func (m *UserRegistratorMock) MinimockRegisterInspect()
- func (m *UserRegistratorMock) MinimockWait(timeout mm_time.Duration)
- func (mmRegister *UserRegistratorMock) Register(ctx context.Context, name string, email string, caption string, ...) (up1 *entity.User, err error)
- func (mmRegister *UserRegistratorMock) RegisterAfterCounter() uint64
- func (mmRegister *UserRegistratorMock) RegisterBeforeCounter() uint64
- type UserRegistratorMockDeactivateExpectation
- type UserRegistratorMockDeactivateParams
- type UserRegistratorMockDeactivateResults
- type UserRegistratorMockLoginExpectation
- type UserRegistratorMockLoginParams
- type UserRegistratorMockLoginResults
- type UserRegistratorMockRegisterExpectation
- type UserRegistratorMockRegisterParams
- type UserRegistratorMockRegisterResults
- type UserRepositoryMock
- func (mmAdd *UserRepositoryMock) Add(ctx context.Context, name string, email string, caption string, ...) (id int, err error)
- func (mmAdd *UserRepositoryMock) AddAfterCounter() uint64
- func (mmAdd *UserRepositoryMock) AddBeforeCounter() uint64
- func (mmDelete *UserRepositoryMock) Delete(ctx context.Context, userID int) (err error)
- func (mmDelete *UserRepositoryMock) DeleteAfterCounter() uint64
- func (mmDelete *UserRepositoryMock) DeleteBeforeCounter() uint64
- func (mmGet *UserRepositoryMock) Get(ctx context.Context, userID int) (up1 *entity.User, err error)
- func (mmGet *UserRepositoryMock) GetAfterCounter() uint64
- func (mmGetAll *UserRepositoryMock) GetAll(ctx context.Context, limit int) (ua1 []entity.User, err error)
- func (mmGetAll *UserRepositoryMock) GetAllAfterCounter() uint64
- func (mmGetAll *UserRepositoryMock) GetAllBeforeCounter() uint64
- func (mmGet *UserRepositoryMock) GetBeforeCounter() uint64
- func (mmGetByEmail *UserRepositoryMock) GetByEmail(ctx context.Context, email string) (up1 *entity.User, err error)
- func (mmGetByEmail *UserRepositoryMock) GetByEmailAfterCounter() uint64
- func (mmGetByEmail *UserRepositoryMock) GetByEmailBeforeCounter() uint64
- func (m *UserRepositoryMock) MinimockAddDone() bool
- func (m *UserRepositoryMock) MinimockAddInspect()
- func (m *UserRepositoryMock) MinimockDeleteDone() bool
- func (m *UserRepositoryMock) MinimockDeleteInspect()
- func (m *UserRepositoryMock) MinimockFinish()
- func (m *UserRepositoryMock) MinimockGetAllDone() bool
- func (m *UserRepositoryMock) MinimockGetAllInspect()
- func (m *UserRepositoryMock) MinimockGetByEmailDone() bool
- func (m *UserRepositoryMock) MinimockGetByEmailInspect()
- func (m *UserRepositoryMock) MinimockGetDone() bool
- func (m *UserRepositoryMock) MinimockGetInspect()
- func (m *UserRepositoryMock) MinimockUpdateCaptionDone() bool
- func (m *UserRepositoryMock) MinimockUpdateCaptionInspect()
- func (m *UserRepositoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmUpdateCaption *UserRepositoryMock) UpdateCaption(ctx context.Context, userID int, caption string) (err error)
- func (mmUpdateCaption *UserRepositoryMock) UpdateCaptionAfterCounter() uint64
- func (mmUpdateCaption *UserRepositoryMock) UpdateCaptionBeforeCounter() uint64
- type UserRepositoryMockAddExpectation
- type UserRepositoryMockAddParams
- type UserRepositoryMockAddResults
- type UserRepositoryMockDeleteExpectation
- type UserRepositoryMockDeleteParams
- type UserRepositoryMockDeleteResults
- type UserRepositoryMockGetAllExpectation
- type UserRepositoryMockGetAllParams
- type UserRepositoryMockGetAllResults
- type UserRepositoryMockGetByEmailExpectation
- type UserRepositoryMockGetByEmailParams
- type UserRepositoryMockGetByEmailResults
- type UserRepositoryMockGetExpectation
- type UserRepositoryMockGetParams
- type UserRepositoryMockGetResults
- type UserRepositoryMockUpdateCaptionExpectation
- type UserRepositoryMockUpdateCaptionParams
- type UserRepositoryMockUpdateCaptionResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedManagerMock ¶
type FeedManagerMock struct { AddCommentMock mFeedManagerMockAddComment AddFollowerMock mFeedManagerMockAddFollower AddTweetMock mFeedManagerMockAddTweet EditCommentMock mFeedManagerMockEditComment EditTweetMock mFeedManagerMockEditTweet GetFollowersMock mFeedManagerMockGetFollowers GetFollowingMock mFeedManagerMockGetFollowing GetNewsFeedMock mFeedManagerMockGetNewsFeed GetRecommendedUsersMock mFeedManagerMockGetRecommendedUsers RemoveFollowerMock mFeedManagerMockRemoveFollower // contains filtered or unexported fields }
FeedManagerMock implements usecase.FeedManager
func NewFeedManagerMock ¶
func NewFeedManagerMock(t minimock.Tester) *FeedManagerMock
NewFeedManagerMock returns a mock for usecase.FeedManager
func (*FeedManagerMock) AddComment ¶
func (mmAddComment *FeedManagerMock) AddComment(ctx context.Context, userID int, tweetID int, text string) (id int, err error)
AddComment implements usecase.FeedManager
func (*FeedManagerMock) AddCommentAfterCounter ¶
func (mmAddComment *FeedManagerMock) AddCommentAfterCounter() uint64
AddCommentAfterCounter returns a count of finished FeedManagerMock.AddComment invocations
func (*FeedManagerMock) AddCommentBeforeCounter ¶
func (mmAddComment *FeedManagerMock) AddCommentBeforeCounter() uint64
AddCommentBeforeCounter returns a count of FeedManagerMock.AddComment invocations
func (*FeedManagerMock) AddFollower ¶
func (mmAddFollower *FeedManagerMock) AddFollower(ctx context.Context, userID int, toUserID int) (err error)
AddFollower implements usecase.FeedManager
func (*FeedManagerMock) AddFollowerAfterCounter ¶
func (mmAddFollower *FeedManagerMock) AddFollowerAfterCounter() uint64
AddFollowerAfterCounter returns a count of finished FeedManagerMock.AddFollower invocations
func (*FeedManagerMock) AddFollowerBeforeCounter ¶
func (mmAddFollower *FeedManagerMock) AddFollowerBeforeCounter() uint64
AddFollowerBeforeCounter returns a count of FeedManagerMock.AddFollower invocations
func (*FeedManagerMock) AddTweet ¶
func (mmAddTweet *FeedManagerMock) AddTweet(ctx context.Context, userID int, text string) (id int, err error)
AddTweet implements usecase.FeedManager
func (*FeedManagerMock) AddTweetAfterCounter ¶
func (mmAddTweet *FeedManagerMock) AddTweetAfterCounter() uint64
AddTweetAfterCounter returns a count of finished FeedManagerMock.AddTweet invocations
func (*FeedManagerMock) AddTweetBeforeCounter ¶
func (mmAddTweet *FeedManagerMock) AddTweetBeforeCounter() uint64
AddTweetBeforeCounter returns a count of FeedManagerMock.AddTweet invocations
func (*FeedManagerMock) EditComment ¶
func (mmEditComment *FeedManagerMock) EditComment(ctx context.Context, commentID int, text string) (err error)
EditComment implements usecase.FeedManager
func (*FeedManagerMock) EditCommentAfterCounter ¶
func (mmEditComment *FeedManagerMock) EditCommentAfterCounter() uint64
EditCommentAfterCounter returns a count of finished FeedManagerMock.EditComment invocations
func (*FeedManagerMock) EditCommentBeforeCounter ¶
func (mmEditComment *FeedManagerMock) EditCommentBeforeCounter() uint64
EditCommentBeforeCounter returns a count of FeedManagerMock.EditComment invocations
func (*FeedManagerMock) EditTweet ¶
func (mmEditTweet *FeedManagerMock) EditTweet(ctx context.Context, tweetID int, text string) (err error)
EditTweet implements usecase.FeedManager
func (*FeedManagerMock) EditTweetAfterCounter ¶
func (mmEditTweet *FeedManagerMock) EditTweetAfterCounter() uint64
EditTweetAfterCounter returns a count of finished FeedManagerMock.EditTweet invocations
func (*FeedManagerMock) EditTweetBeforeCounter ¶
func (mmEditTweet *FeedManagerMock) EditTweetBeforeCounter() uint64
EditTweetBeforeCounter returns a count of FeedManagerMock.EditTweet invocations
func (*FeedManagerMock) GetFollowers ¶
func (mmGetFollowers *FeedManagerMock) GetFollowers(ctx context.Context, userID int) (ua1 []entity.User, err error)
GetFollowers implements usecase.FeedManager
func (*FeedManagerMock) GetFollowersAfterCounter ¶
func (mmGetFollowers *FeedManagerMock) GetFollowersAfterCounter() uint64
GetFollowersAfterCounter returns a count of finished FeedManagerMock.GetFollowers invocations
func (*FeedManagerMock) GetFollowersBeforeCounter ¶
func (mmGetFollowers *FeedManagerMock) GetFollowersBeforeCounter() uint64
GetFollowersBeforeCounter returns a count of FeedManagerMock.GetFollowers invocations
func (*FeedManagerMock) GetFollowing ¶
func (mmGetFollowing *FeedManagerMock) GetFollowing(ctx context.Context, userID int) (ua1 []entity.User, err error)
GetFollowing implements usecase.FeedManager
func (*FeedManagerMock) GetFollowingAfterCounter ¶
func (mmGetFollowing *FeedManagerMock) GetFollowingAfterCounter() uint64
GetFollowingAfterCounter returns a count of finished FeedManagerMock.GetFollowing invocations
func (*FeedManagerMock) GetFollowingBeforeCounter ¶
func (mmGetFollowing *FeedManagerMock) GetFollowingBeforeCounter() uint64
GetFollowingBeforeCounter returns a count of FeedManagerMock.GetFollowing invocations
func (*FeedManagerMock) GetNewsFeed ¶
func (mmGetNewsFeed *FeedManagerMock) GetNewsFeed(ctx context.Context, userID int) (ta1 []entity.Tweet, err error)
GetNewsFeed implements usecase.FeedManager
func (*FeedManagerMock) GetNewsFeedAfterCounter ¶
func (mmGetNewsFeed *FeedManagerMock) GetNewsFeedAfterCounter() uint64
GetNewsFeedAfterCounter returns a count of finished FeedManagerMock.GetNewsFeed invocations
func (*FeedManagerMock) GetNewsFeedBeforeCounter ¶
func (mmGetNewsFeed *FeedManagerMock) GetNewsFeedBeforeCounter() uint64
GetNewsFeedBeforeCounter returns a count of FeedManagerMock.GetNewsFeed invocations
func (*FeedManagerMock) GetRecommendedUsers ¶
func (mmGetRecommendedUsers *FeedManagerMock) GetRecommendedUsers(ctx context.Context, userID int) (ua1 []entity.User, err error)
GetRecommendedUsers implements usecase.FeedManager
func (*FeedManagerMock) GetRecommendedUsersAfterCounter ¶
func (mmGetRecommendedUsers *FeedManagerMock) GetRecommendedUsersAfterCounter() uint64
GetRecommendedUsersAfterCounter returns a count of finished FeedManagerMock.GetRecommendedUsers invocations
func (*FeedManagerMock) GetRecommendedUsersBeforeCounter ¶
func (mmGetRecommendedUsers *FeedManagerMock) GetRecommendedUsersBeforeCounter() uint64
GetRecommendedUsersBeforeCounter returns a count of FeedManagerMock.GetRecommendedUsers invocations
func (*FeedManagerMock) MinimockAddCommentDone ¶
func (m *FeedManagerMock) MinimockAddCommentDone() bool
MinimockAddCommentDone returns true if the count of the AddComment invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockAddCommentInspect ¶
func (m *FeedManagerMock) MinimockAddCommentInspect()
MinimockAddCommentInspect logs each unmet expectation
func (*FeedManagerMock) MinimockAddFollowerDone ¶
func (m *FeedManagerMock) MinimockAddFollowerDone() bool
MinimockAddFollowerDone returns true if the count of the AddFollower invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockAddFollowerInspect ¶
func (m *FeedManagerMock) MinimockAddFollowerInspect()
MinimockAddFollowerInspect logs each unmet expectation
func (*FeedManagerMock) MinimockAddTweetDone ¶
func (m *FeedManagerMock) MinimockAddTweetDone() bool
MinimockAddTweetDone returns true if the count of the AddTweet invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockAddTweetInspect ¶
func (m *FeedManagerMock) MinimockAddTweetInspect()
MinimockAddTweetInspect logs each unmet expectation
func (*FeedManagerMock) MinimockEditCommentDone ¶
func (m *FeedManagerMock) MinimockEditCommentDone() bool
MinimockEditCommentDone returns true if the count of the EditComment invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockEditCommentInspect ¶
func (m *FeedManagerMock) MinimockEditCommentInspect()
MinimockEditCommentInspect logs each unmet expectation
func (*FeedManagerMock) MinimockEditTweetDone ¶
func (m *FeedManagerMock) MinimockEditTweetDone() bool
MinimockEditTweetDone returns true if the count of the EditTweet invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockEditTweetInspect ¶
func (m *FeedManagerMock) MinimockEditTweetInspect()
MinimockEditTweetInspect logs each unmet expectation
func (*FeedManagerMock) MinimockFinish ¶
func (m *FeedManagerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FeedManagerMock) MinimockGetFollowersDone ¶
func (m *FeedManagerMock) MinimockGetFollowersDone() bool
MinimockGetFollowersDone returns true if the count of the GetFollowers invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockGetFollowersInspect ¶
func (m *FeedManagerMock) MinimockGetFollowersInspect()
MinimockGetFollowersInspect logs each unmet expectation
func (*FeedManagerMock) MinimockGetFollowingDone ¶
func (m *FeedManagerMock) MinimockGetFollowingDone() bool
MinimockGetFollowingDone returns true if the count of the GetFollowing invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockGetFollowingInspect ¶
func (m *FeedManagerMock) MinimockGetFollowingInspect()
MinimockGetFollowingInspect logs each unmet expectation
func (*FeedManagerMock) MinimockGetNewsFeedDone ¶
func (m *FeedManagerMock) MinimockGetNewsFeedDone() bool
MinimockGetNewsFeedDone returns true if the count of the GetNewsFeed invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockGetNewsFeedInspect ¶
func (m *FeedManagerMock) MinimockGetNewsFeedInspect()
MinimockGetNewsFeedInspect logs each unmet expectation
func (*FeedManagerMock) MinimockGetRecommendedUsersDone ¶
func (m *FeedManagerMock) MinimockGetRecommendedUsersDone() bool
MinimockGetRecommendedUsersDone returns true if the count of the GetRecommendedUsers invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockGetRecommendedUsersInspect ¶
func (m *FeedManagerMock) MinimockGetRecommendedUsersInspect()
MinimockGetRecommendedUsersInspect logs each unmet expectation
func (*FeedManagerMock) MinimockRemoveFollowerDone ¶
func (m *FeedManagerMock) MinimockRemoveFollowerDone() bool
MinimockRemoveFollowerDone returns true if the count of the RemoveFollower invocations corresponds the number of defined expectations
func (*FeedManagerMock) MinimockRemoveFollowerInspect ¶
func (m *FeedManagerMock) MinimockRemoveFollowerInspect()
MinimockRemoveFollowerInspect logs each unmet expectation
func (*FeedManagerMock) MinimockWait ¶
func (m *FeedManagerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*FeedManagerMock) RemoveFollower ¶
func (mmRemoveFollower *FeedManagerMock) RemoveFollower(ctx context.Context, userID int, fromUserID int) (err error)
RemoveFollower implements usecase.FeedManager
func (*FeedManagerMock) RemoveFollowerAfterCounter ¶
func (mmRemoveFollower *FeedManagerMock) RemoveFollowerAfterCounter() uint64
RemoveFollowerAfterCounter returns a count of finished FeedManagerMock.RemoveFollower invocations
func (*FeedManagerMock) RemoveFollowerBeforeCounter ¶
func (mmRemoveFollower *FeedManagerMock) RemoveFollowerBeforeCounter() uint64
RemoveFollowerBeforeCounter returns a count of FeedManagerMock.RemoveFollower invocations
type FeedManagerMockAddCommentExpectation ¶
type FeedManagerMockAddCommentExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockAddCommentExpectation specifies expectation struct of the FeedManager.AddComment
func (*FeedManagerMockAddCommentExpectation) Then ¶
func (e *FeedManagerMockAddCommentExpectation) Then(id int, err error) *FeedManagerMock
Then sets up FeedManager.AddComment return parameters for the expectation previously defined by the When method
type FeedManagerMockAddCommentParams ¶
type FeedManagerMockAddCommentParams struct {
// contains filtered or unexported fields
}
FeedManagerMockAddCommentParams contains parameters of the FeedManager.AddComment
type FeedManagerMockAddCommentResults ¶
type FeedManagerMockAddCommentResults struct {
// contains filtered or unexported fields
}
FeedManagerMockAddCommentResults contains results of the FeedManager.AddComment
type FeedManagerMockAddFollowerExpectation ¶
type FeedManagerMockAddFollowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockAddFollowerExpectation specifies expectation struct of the FeedManager.AddFollower
func (*FeedManagerMockAddFollowerExpectation) Then ¶
func (e *FeedManagerMockAddFollowerExpectation) Then(err error) *FeedManagerMock
Then sets up FeedManager.AddFollower return parameters for the expectation previously defined by the When method
type FeedManagerMockAddFollowerParams ¶
type FeedManagerMockAddFollowerParams struct {
// contains filtered or unexported fields
}
FeedManagerMockAddFollowerParams contains parameters of the FeedManager.AddFollower
type FeedManagerMockAddFollowerResults ¶
type FeedManagerMockAddFollowerResults struct {
// contains filtered or unexported fields
}
FeedManagerMockAddFollowerResults contains results of the FeedManager.AddFollower
type FeedManagerMockAddTweetExpectation ¶
type FeedManagerMockAddTweetExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockAddTweetExpectation specifies expectation struct of the FeedManager.AddTweet
func (*FeedManagerMockAddTweetExpectation) Then ¶
func (e *FeedManagerMockAddTweetExpectation) Then(id int, err error) *FeedManagerMock
Then sets up FeedManager.AddTweet return parameters for the expectation previously defined by the When method
type FeedManagerMockAddTweetParams ¶
type FeedManagerMockAddTweetParams struct {
// contains filtered or unexported fields
}
FeedManagerMockAddTweetParams contains parameters of the FeedManager.AddTweet
type FeedManagerMockAddTweetResults ¶
type FeedManagerMockAddTweetResults struct {
// contains filtered or unexported fields
}
FeedManagerMockAddTweetResults contains results of the FeedManager.AddTweet
type FeedManagerMockEditCommentExpectation ¶
type FeedManagerMockEditCommentExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockEditCommentExpectation specifies expectation struct of the FeedManager.EditComment
func (*FeedManagerMockEditCommentExpectation) Then ¶
func (e *FeedManagerMockEditCommentExpectation) Then(err error) *FeedManagerMock
Then sets up FeedManager.EditComment return parameters for the expectation previously defined by the When method
type FeedManagerMockEditCommentParams ¶
type FeedManagerMockEditCommentParams struct {
// contains filtered or unexported fields
}
FeedManagerMockEditCommentParams contains parameters of the FeedManager.EditComment
type FeedManagerMockEditCommentResults ¶
type FeedManagerMockEditCommentResults struct {
// contains filtered or unexported fields
}
FeedManagerMockEditCommentResults contains results of the FeedManager.EditComment
type FeedManagerMockEditTweetExpectation ¶
type FeedManagerMockEditTweetExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockEditTweetExpectation specifies expectation struct of the FeedManager.EditTweet
func (*FeedManagerMockEditTweetExpectation) Then ¶
func (e *FeedManagerMockEditTweetExpectation) Then(err error) *FeedManagerMock
Then sets up FeedManager.EditTweet return parameters for the expectation previously defined by the When method
type FeedManagerMockEditTweetParams ¶
type FeedManagerMockEditTweetParams struct {
// contains filtered or unexported fields
}
FeedManagerMockEditTweetParams contains parameters of the FeedManager.EditTweet
type FeedManagerMockEditTweetResults ¶
type FeedManagerMockEditTweetResults struct {
// contains filtered or unexported fields
}
FeedManagerMockEditTweetResults contains results of the FeedManager.EditTweet
type FeedManagerMockGetFollowersExpectation ¶
type FeedManagerMockGetFollowersExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockGetFollowersExpectation specifies expectation struct of the FeedManager.GetFollowers
func (*FeedManagerMockGetFollowersExpectation) Then ¶
func (e *FeedManagerMockGetFollowersExpectation) Then(ua1 []entity.User, err error) *FeedManagerMock
Then sets up FeedManager.GetFollowers return parameters for the expectation previously defined by the When method
type FeedManagerMockGetFollowersParams ¶
type FeedManagerMockGetFollowersParams struct {
// contains filtered or unexported fields
}
FeedManagerMockGetFollowersParams contains parameters of the FeedManager.GetFollowers
type FeedManagerMockGetFollowersResults ¶
type FeedManagerMockGetFollowersResults struct {
// contains filtered or unexported fields
}
FeedManagerMockGetFollowersResults contains results of the FeedManager.GetFollowers
type FeedManagerMockGetFollowingExpectation ¶
type FeedManagerMockGetFollowingExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockGetFollowingExpectation specifies expectation struct of the FeedManager.GetFollowing
func (*FeedManagerMockGetFollowingExpectation) Then ¶
func (e *FeedManagerMockGetFollowingExpectation) Then(ua1 []entity.User, err error) *FeedManagerMock
Then sets up FeedManager.GetFollowing return parameters for the expectation previously defined by the When method
type FeedManagerMockGetFollowingParams ¶
type FeedManagerMockGetFollowingParams struct {
// contains filtered or unexported fields
}
FeedManagerMockGetFollowingParams contains parameters of the FeedManager.GetFollowing
type FeedManagerMockGetFollowingResults ¶
type FeedManagerMockGetFollowingResults struct {
// contains filtered or unexported fields
}
FeedManagerMockGetFollowingResults contains results of the FeedManager.GetFollowing
type FeedManagerMockGetNewsFeedExpectation ¶
type FeedManagerMockGetNewsFeedExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockGetNewsFeedExpectation specifies expectation struct of the FeedManager.GetNewsFeed
func (*FeedManagerMockGetNewsFeedExpectation) Then ¶
func (e *FeedManagerMockGetNewsFeedExpectation) Then(ta1 []entity.Tweet, err error) *FeedManagerMock
Then sets up FeedManager.GetNewsFeed return parameters for the expectation previously defined by the When method
type FeedManagerMockGetNewsFeedParams ¶
type FeedManagerMockGetNewsFeedParams struct {
// contains filtered or unexported fields
}
FeedManagerMockGetNewsFeedParams contains parameters of the FeedManager.GetNewsFeed
type FeedManagerMockGetNewsFeedResults ¶
type FeedManagerMockGetNewsFeedResults struct {
// contains filtered or unexported fields
}
FeedManagerMockGetNewsFeedResults contains results of the FeedManager.GetNewsFeed
type FeedManagerMockGetRecommendedUsersExpectation ¶
type FeedManagerMockGetRecommendedUsersExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockGetRecommendedUsersExpectation specifies expectation struct of the FeedManager.GetRecommendedUsers
func (*FeedManagerMockGetRecommendedUsersExpectation) Then ¶
func (e *FeedManagerMockGetRecommendedUsersExpectation) Then(ua1 []entity.User, err error) *FeedManagerMock
Then sets up FeedManager.GetRecommendedUsers return parameters for the expectation previously defined by the When method
type FeedManagerMockGetRecommendedUsersParams ¶
type FeedManagerMockGetRecommendedUsersParams struct {
// contains filtered or unexported fields
}
FeedManagerMockGetRecommendedUsersParams contains parameters of the FeedManager.GetRecommendedUsers
type FeedManagerMockGetRecommendedUsersResults ¶
type FeedManagerMockGetRecommendedUsersResults struct {
// contains filtered or unexported fields
}
FeedManagerMockGetRecommendedUsersResults contains results of the FeedManager.GetRecommendedUsers
type FeedManagerMockRemoveFollowerExpectation ¶
type FeedManagerMockRemoveFollowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
FeedManagerMockRemoveFollowerExpectation specifies expectation struct of the FeedManager.RemoveFollower
func (*FeedManagerMockRemoveFollowerExpectation) Then ¶
func (e *FeedManagerMockRemoveFollowerExpectation) Then(err error) *FeedManagerMock
Then sets up FeedManager.RemoveFollower return parameters for the expectation previously defined by the When method
type FeedManagerMockRemoveFollowerParams ¶
type FeedManagerMockRemoveFollowerParams struct {
// contains filtered or unexported fields
}
FeedManagerMockRemoveFollowerParams contains parameters of the FeedManager.RemoveFollower
type FeedManagerMockRemoveFollowerResults ¶
type FeedManagerMockRemoveFollowerResults struct {
// contains filtered or unexported fields
}
FeedManagerMockRemoveFollowerResults contains results of the FeedManager.RemoveFollower
type FollowerRepositoryMock ¶
type FollowerRepositoryMock struct { AddMock mFollowerRepositoryMockAdd GetFollowersMock mFollowerRepositoryMockGetFollowers GetFollowingMock mFollowerRepositoryMockGetFollowing RemoveMock mFollowerRepositoryMockRemove // contains filtered or unexported fields }
FollowerRepositoryMock implements usecase.FollowerRepository
func NewFollowerRepositoryMock ¶
func NewFollowerRepositoryMock(t minimock.Tester) *FollowerRepositoryMock
NewFollowerRepositoryMock returns a mock for usecase.FollowerRepository
func (*FollowerRepositoryMock) Add ¶
func (mmAdd *FollowerRepositoryMock) Add(ctx context.Context, followerID int, toUserID int) (err error)
Add implements usecase.FollowerRepository
func (*FollowerRepositoryMock) AddAfterCounter ¶
func (mmAdd *FollowerRepositoryMock) AddAfterCounter() uint64
AddAfterCounter returns a count of finished FollowerRepositoryMock.Add invocations
func (*FollowerRepositoryMock) AddBeforeCounter ¶
func (mmAdd *FollowerRepositoryMock) AddBeforeCounter() uint64
AddBeforeCounter returns a count of FollowerRepositoryMock.Add invocations
func (*FollowerRepositoryMock) GetFollowers ¶
func (mmGetFollowers *FollowerRepositoryMock) GetFollowers(ctx context.Context, userID int, topN int) (ia1 []int, err error)
GetFollowers implements usecase.FollowerRepository
func (*FollowerRepositoryMock) GetFollowersAfterCounter ¶
func (mmGetFollowers *FollowerRepositoryMock) GetFollowersAfterCounter() uint64
GetFollowersAfterCounter returns a count of finished FollowerRepositoryMock.GetFollowers invocations
func (*FollowerRepositoryMock) GetFollowersBeforeCounter ¶
func (mmGetFollowers *FollowerRepositoryMock) GetFollowersBeforeCounter() uint64
GetFollowersBeforeCounter returns a count of FollowerRepositoryMock.GetFollowers invocations
func (*FollowerRepositoryMock) GetFollowing ¶
func (mmGetFollowing *FollowerRepositoryMock) GetFollowing(ctx context.Context, userID int, topN int) (ia1 []int, err error)
GetFollowing implements usecase.FollowerRepository
func (*FollowerRepositoryMock) GetFollowingAfterCounter ¶
func (mmGetFollowing *FollowerRepositoryMock) GetFollowingAfterCounter() uint64
GetFollowingAfterCounter returns a count of finished FollowerRepositoryMock.GetFollowing invocations
func (*FollowerRepositoryMock) GetFollowingBeforeCounter ¶
func (mmGetFollowing *FollowerRepositoryMock) GetFollowingBeforeCounter() uint64
GetFollowingBeforeCounter returns a count of FollowerRepositoryMock.GetFollowing invocations
func (*FollowerRepositoryMock) MinimockAddDone ¶
func (m *FollowerRepositoryMock) MinimockAddDone() bool
MinimockAddDone returns true if the count of the Add invocations corresponds the number of defined expectations
func (*FollowerRepositoryMock) MinimockAddInspect ¶
func (m *FollowerRepositoryMock) MinimockAddInspect()
MinimockAddInspect logs each unmet expectation
func (*FollowerRepositoryMock) MinimockFinish ¶
func (m *FollowerRepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FollowerRepositoryMock) MinimockGetFollowersDone ¶
func (m *FollowerRepositoryMock) MinimockGetFollowersDone() bool
MinimockGetFollowersDone returns true if the count of the GetFollowers invocations corresponds the number of defined expectations
func (*FollowerRepositoryMock) MinimockGetFollowersInspect ¶
func (m *FollowerRepositoryMock) MinimockGetFollowersInspect()
MinimockGetFollowersInspect logs each unmet expectation
func (*FollowerRepositoryMock) MinimockGetFollowingDone ¶
func (m *FollowerRepositoryMock) MinimockGetFollowingDone() bool
MinimockGetFollowingDone returns true if the count of the GetFollowing invocations corresponds the number of defined expectations
func (*FollowerRepositoryMock) MinimockGetFollowingInspect ¶
func (m *FollowerRepositoryMock) MinimockGetFollowingInspect()
MinimockGetFollowingInspect logs each unmet expectation
func (*FollowerRepositoryMock) MinimockRemoveDone ¶
func (m *FollowerRepositoryMock) MinimockRemoveDone() bool
MinimockRemoveDone returns true if the count of the Remove invocations corresponds the number of defined expectations
func (*FollowerRepositoryMock) MinimockRemoveInspect ¶
func (m *FollowerRepositoryMock) MinimockRemoveInspect()
MinimockRemoveInspect logs each unmet expectation
func (*FollowerRepositoryMock) MinimockWait ¶
func (m *FollowerRepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*FollowerRepositoryMock) Remove ¶
func (mmRemove *FollowerRepositoryMock) Remove(ctx context.Context, followerID int, fromUserID int) (err error)
Remove implements usecase.FollowerRepository
func (*FollowerRepositoryMock) RemoveAfterCounter ¶
func (mmRemove *FollowerRepositoryMock) RemoveAfterCounter() uint64
RemoveAfterCounter returns a count of finished FollowerRepositoryMock.Remove invocations
func (*FollowerRepositoryMock) RemoveBeforeCounter ¶
func (mmRemove *FollowerRepositoryMock) RemoveBeforeCounter() uint64
RemoveBeforeCounter returns a count of FollowerRepositoryMock.Remove invocations
type FollowerRepositoryMockAddExpectation ¶
type FollowerRepositoryMockAddExpectation struct { Counter uint64 // contains filtered or unexported fields }
FollowerRepositoryMockAddExpectation specifies expectation struct of the FollowerRepository.Add
func (*FollowerRepositoryMockAddExpectation) Then ¶
func (e *FollowerRepositoryMockAddExpectation) Then(err error) *FollowerRepositoryMock
Then sets up FollowerRepository.Add return parameters for the expectation previously defined by the When method
type FollowerRepositoryMockAddParams ¶
type FollowerRepositoryMockAddParams struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockAddParams contains parameters of the FollowerRepository.Add
type FollowerRepositoryMockAddResults ¶
type FollowerRepositoryMockAddResults struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockAddResults contains results of the FollowerRepository.Add
type FollowerRepositoryMockGetFollowersExpectation ¶
type FollowerRepositoryMockGetFollowersExpectation struct { Counter uint64 // contains filtered or unexported fields }
FollowerRepositoryMockGetFollowersExpectation specifies expectation struct of the FollowerRepository.GetFollowers
func (*FollowerRepositoryMockGetFollowersExpectation) Then ¶
func (e *FollowerRepositoryMockGetFollowersExpectation) Then(ia1 []int, err error) *FollowerRepositoryMock
Then sets up FollowerRepository.GetFollowers return parameters for the expectation previously defined by the When method
type FollowerRepositoryMockGetFollowersParams ¶
type FollowerRepositoryMockGetFollowersParams struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockGetFollowersParams contains parameters of the FollowerRepository.GetFollowers
type FollowerRepositoryMockGetFollowersResults ¶
type FollowerRepositoryMockGetFollowersResults struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockGetFollowersResults contains results of the FollowerRepository.GetFollowers
type FollowerRepositoryMockGetFollowingExpectation ¶
type FollowerRepositoryMockGetFollowingExpectation struct { Counter uint64 // contains filtered or unexported fields }
FollowerRepositoryMockGetFollowingExpectation specifies expectation struct of the FollowerRepository.GetFollowing
func (*FollowerRepositoryMockGetFollowingExpectation) Then ¶
func (e *FollowerRepositoryMockGetFollowingExpectation) Then(ia1 []int, err error) *FollowerRepositoryMock
Then sets up FollowerRepository.GetFollowing return parameters for the expectation previously defined by the When method
type FollowerRepositoryMockGetFollowingParams ¶
type FollowerRepositoryMockGetFollowingParams struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockGetFollowingParams contains parameters of the FollowerRepository.GetFollowing
type FollowerRepositoryMockGetFollowingResults ¶
type FollowerRepositoryMockGetFollowingResults struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockGetFollowingResults contains results of the FollowerRepository.GetFollowing
type FollowerRepositoryMockRemoveExpectation ¶
type FollowerRepositoryMockRemoveExpectation struct { Counter uint64 // contains filtered or unexported fields }
FollowerRepositoryMockRemoveExpectation specifies expectation struct of the FollowerRepository.Remove
func (*FollowerRepositoryMockRemoveExpectation) Then ¶
func (e *FollowerRepositoryMockRemoveExpectation) Then(err error) *FollowerRepositoryMock
Then sets up FollowerRepository.Remove return parameters for the expectation previously defined by the When method
type FollowerRepositoryMockRemoveParams ¶
type FollowerRepositoryMockRemoveParams struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockRemoveParams contains parameters of the FollowerRepository.Remove
type FollowerRepositoryMockRemoveResults ¶
type FollowerRepositoryMockRemoveResults struct {
// contains filtered or unexported fields
}
FollowerRepositoryMockRemoveResults contains results of the FollowerRepository.Remove
type ScamDetectorClientMock ¶
type ScamDetectorClientMock struct { CheckEmailMock mScamDetectorClientMockCheckEmail // contains filtered or unexported fields }
ScamDetectorClientMock implements usecase.ScamDetectorClient
func NewScamDetectorClientMock ¶
func NewScamDetectorClientMock(t minimock.Tester) *ScamDetectorClientMock
NewScamDetectorClientMock returns a mock for usecase.ScamDetectorClient
func (*ScamDetectorClientMock) CheckEmail ¶
func (mmCheckEmail *ScamDetectorClientMock) CheckEmail(ctx context.Context, email string) (err error)
CheckEmail implements usecase.ScamDetectorClient
func (*ScamDetectorClientMock) CheckEmailAfterCounter ¶
func (mmCheckEmail *ScamDetectorClientMock) CheckEmailAfterCounter() uint64
CheckEmailAfterCounter returns a count of finished ScamDetectorClientMock.CheckEmail invocations
func (*ScamDetectorClientMock) CheckEmailBeforeCounter ¶
func (mmCheckEmail *ScamDetectorClientMock) CheckEmailBeforeCounter() uint64
CheckEmailBeforeCounter returns a count of ScamDetectorClientMock.CheckEmail invocations
func (*ScamDetectorClientMock) MinimockCheckEmailDone ¶
func (m *ScamDetectorClientMock) MinimockCheckEmailDone() bool
MinimockCheckEmailDone returns true if the count of the CheckEmail invocations corresponds the number of defined expectations
func (*ScamDetectorClientMock) MinimockCheckEmailInspect ¶
func (m *ScamDetectorClientMock) MinimockCheckEmailInspect()
MinimockCheckEmailInspect logs each unmet expectation
func (*ScamDetectorClientMock) MinimockFinish ¶
func (m *ScamDetectorClientMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ScamDetectorClientMock) MinimockWait ¶
func (m *ScamDetectorClientMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type ScamDetectorClientMockCheckEmailExpectation ¶
type ScamDetectorClientMockCheckEmailExpectation struct { Counter uint64 // contains filtered or unexported fields }
ScamDetectorClientMockCheckEmailExpectation specifies expectation struct of the ScamDetectorClient.CheckEmail
func (*ScamDetectorClientMockCheckEmailExpectation) Then ¶
func (e *ScamDetectorClientMockCheckEmailExpectation) Then(err error) *ScamDetectorClientMock
Then sets up ScamDetectorClient.CheckEmail return parameters for the expectation previously defined by the When method
type ScamDetectorClientMockCheckEmailParams ¶
type ScamDetectorClientMockCheckEmailParams struct {
// contains filtered or unexported fields
}
ScamDetectorClientMockCheckEmailParams contains parameters of the ScamDetectorClient.CheckEmail
type ScamDetectorClientMockCheckEmailResults ¶
type ScamDetectorClientMockCheckEmailResults struct {
// contains filtered or unexported fields
}
ScamDetectorClientMockCheckEmailResults contains results of the ScamDetectorClient.CheckEmail
type TweetRepositoryMock ¶
type TweetRepositoryMock struct { AddMock mTweetRepositoryMockAdd AddCommentMock mTweetRepositoryMockAddComment GetLatestMock mTweetRepositoryMockGetLatest UpdateMock mTweetRepositoryMockUpdate UpdateCommentMock mTweetRepositoryMockUpdateComment // contains filtered or unexported fields }
TweetRepositoryMock implements usecase.TweetRepository
func NewTweetRepositoryMock ¶
func NewTweetRepositoryMock(t minimock.Tester) *TweetRepositoryMock
NewTweetRepositoryMock returns a mock for usecase.TweetRepository
func (*TweetRepositoryMock) Add ¶
func (mmAdd *TweetRepositoryMock) Add(ctx context.Context, userID int, tweetText string) (id int, err error)
Add implements usecase.TweetRepository
func (*TweetRepositoryMock) AddAfterCounter ¶
func (mmAdd *TweetRepositoryMock) AddAfterCounter() uint64
AddAfterCounter returns a count of finished TweetRepositoryMock.Add invocations
func (*TweetRepositoryMock) AddBeforeCounter ¶
func (mmAdd *TweetRepositoryMock) AddBeforeCounter() uint64
AddBeforeCounter returns a count of TweetRepositoryMock.Add invocations
func (*TweetRepositoryMock) AddComment ¶
func (mmAddComment *TweetRepositoryMock) AddComment(ctx context.Context, userID int, tweetID int, commentText string) (id int, err error)
AddComment implements usecase.TweetRepository
func (*TweetRepositoryMock) AddCommentAfterCounter ¶
func (mmAddComment *TweetRepositoryMock) AddCommentAfterCounter() uint64
AddCommentAfterCounter returns a count of finished TweetRepositoryMock.AddComment invocations
func (*TweetRepositoryMock) AddCommentBeforeCounter ¶
func (mmAddComment *TweetRepositoryMock) AddCommentBeforeCounter() uint64
AddCommentBeforeCounter returns a count of TweetRepositoryMock.AddComment invocations
func (*TweetRepositoryMock) GetLatest ¶
func (mmGetLatest *TweetRepositoryMock) GetLatest(ctx context.Context, userID int, limit int) (ta1 []entity.Tweet, err error)
GetLatest implements usecase.TweetRepository
func (*TweetRepositoryMock) GetLatestAfterCounter ¶
func (mmGetLatest *TweetRepositoryMock) GetLatestAfterCounter() uint64
GetLatestAfterCounter returns a count of finished TweetRepositoryMock.GetLatest invocations
func (*TweetRepositoryMock) GetLatestBeforeCounter ¶
func (mmGetLatest *TweetRepositoryMock) GetLatestBeforeCounter() uint64
GetLatestBeforeCounter returns a count of TweetRepositoryMock.GetLatest invocations
func (*TweetRepositoryMock) MinimockAddCommentDone ¶
func (m *TweetRepositoryMock) MinimockAddCommentDone() bool
MinimockAddCommentDone returns true if the count of the AddComment invocations corresponds the number of defined expectations
func (*TweetRepositoryMock) MinimockAddCommentInspect ¶
func (m *TweetRepositoryMock) MinimockAddCommentInspect()
MinimockAddCommentInspect logs each unmet expectation
func (*TweetRepositoryMock) MinimockAddDone ¶
func (m *TweetRepositoryMock) MinimockAddDone() bool
MinimockAddDone returns true if the count of the Add invocations corresponds the number of defined expectations
func (*TweetRepositoryMock) MinimockAddInspect ¶
func (m *TweetRepositoryMock) MinimockAddInspect()
MinimockAddInspect logs each unmet expectation
func (*TweetRepositoryMock) MinimockFinish ¶
func (m *TweetRepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*TweetRepositoryMock) MinimockGetLatestDone ¶
func (m *TweetRepositoryMock) MinimockGetLatestDone() bool
MinimockGetLatestDone returns true if the count of the GetLatest invocations corresponds the number of defined expectations
func (*TweetRepositoryMock) MinimockGetLatestInspect ¶
func (m *TweetRepositoryMock) MinimockGetLatestInspect()
MinimockGetLatestInspect logs each unmet expectation
func (*TweetRepositoryMock) MinimockUpdateCommentDone ¶
func (m *TweetRepositoryMock) MinimockUpdateCommentDone() bool
MinimockUpdateCommentDone returns true if the count of the UpdateComment invocations corresponds the number of defined expectations
func (*TweetRepositoryMock) MinimockUpdateCommentInspect ¶
func (m *TweetRepositoryMock) MinimockUpdateCommentInspect()
MinimockUpdateCommentInspect logs each unmet expectation
func (*TweetRepositoryMock) MinimockUpdateDone ¶
func (m *TweetRepositoryMock) MinimockUpdateDone() bool
MinimockUpdateDone returns true if the count of the Update invocations corresponds the number of defined expectations
func (*TweetRepositoryMock) MinimockUpdateInspect ¶
func (m *TweetRepositoryMock) MinimockUpdateInspect()
MinimockUpdateInspect logs each unmet expectation
func (*TweetRepositoryMock) MinimockWait ¶
func (m *TweetRepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*TweetRepositoryMock) Update ¶
func (mmUpdate *TweetRepositoryMock) Update(ctx context.Context, tweetID int, newText string) (err error)
Update implements usecase.TweetRepository
func (*TweetRepositoryMock) UpdateAfterCounter ¶
func (mmUpdate *TweetRepositoryMock) UpdateAfterCounter() uint64
UpdateAfterCounter returns a count of finished TweetRepositoryMock.Update invocations
func (*TweetRepositoryMock) UpdateBeforeCounter ¶
func (mmUpdate *TweetRepositoryMock) UpdateBeforeCounter() uint64
UpdateBeforeCounter returns a count of TweetRepositoryMock.Update invocations
func (*TweetRepositoryMock) UpdateComment ¶
func (mmUpdateComment *TweetRepositoryMock) UpdateComment(ctx context.Context, commentID int, newText string) (err error)
UpdateComment implements usecase.TweetRepository
func (*TweetRepositoryMock) UpdateCommentAfterCounter ¶
func (mmUpdateComment *TweetRepositoryMock) UpdateCommentAfterCounter() uint64
UpdateCommentAfterCounter returns a count of finished TweetRepositoryMock.UpdateComment invocations
func (*TweetRepositoryMock) UpdateCommentBeforeCounter ¶
func (mmUpdateComment *TweetRepositoryMock) UpdateCommentBeforeCounter() uint64
UpdateCommentBeforeCounter returns a count of TweetRepositoryMock.UpdateComment invocations
type TweetRepositoryMockAddCommentExpectation ¶
type TweetRepositoryMockAddCommentExpectation struct { Counter uint64 // contains filtered or unexported fields }
TweetRepositoryMockAddCommentExpectation specifies expectation struct of the TweetRepository.AddComment
func (*TweetRepositoryMockAddCommentExpectation) Then ¶
func (e *TweetRepositoryMockAddCommentExpectation) Then(id int, err error) *TweetRepositoryMock
Then sets up TweetRepository.AddComment return parameters for the expectation previously defined by the When method
type TweetRepositoryMockAddCommentParams ¶
type TweetRepositoryMockAddCommentParams struct {
// contains filtered or unexported fields
}
TweetRepositoryMockAddCommentParams contains parameters of the TweetRepository.AddComment
type TweetRepositoryMockAddCommentResults ¶
type TweetRepositoryMockAddCommentResults struct {
// contains filtered or unexported fields
}
TweetRepositoryMockAddCommentResults contains results of the TweetRepository.AddComment
type TweetRepositoryMockAddExpectation ¶
type TweetRepositoryMockAddExpectation struct { Counter uint64 // contains filtered or unexported fields }
TweetRepositoryMockAddExpectation specifies expectation struct of the TweetRepository.Add
func (*TweetRepositoryMockAddExpectation) Then ¶
func (e *TweetRepositoryMockAddExpectation) Then(id int, err error) *TweetRepositoryMock
Then sets up TweetRepository.Add return parameters for the expectation previously defined by the When method
type TweetRepositoryMockAddParams ¶
type TweetRepositoryMockAddParams struct {
// contains filtered or unexported fields
}
TweetRepositoryMockAddParams contains parameters of the TweetRepository.Add
type TweetRepositoryMockAddResults ¶
type TweetRepositoryMockAddResults struct {
// contains filtered or unexported fields
}
TweetRepositoryMockAddResults contains results of the TweetRepository.Add
type TweetRepositoryMockGetLatestExpectation ¶
type TweetRepositoryMockGetLatestExpectation struct { Counter uint64 // contains filtered or unexported fields }
TweetRepositoryMockGetLatestExpectation specifies expectation struct of the TweetRepository.GetLatest
func (*TweetRepositoryMockGetLatestExpectation) Then ¶
func (e *TweetRepositoryMockGetLatestExpectation) Then(ta1 []entity.Tweet, err error) *TweetRepositoryMock
Then sets up TweetRepository.GetLatest return parameters for the expectation previously defined by the When method
type TweetRepositoryMockGetLatestParams ¶
type TweetRepositoryMockGetLatestParams struct {
// contains filtered or unexported fields
}
TweetRepositoryMockGetLatestParams contains parameters of the TweetRepository.GetLatest
type TweetRepositoryMockGetLatestResults ¶
type TweetRepositoryMockGetLatestResults struct {
// contains filtered or unexported fields
}
TweetRepositoryMockGetLatestResults contains results of the TweetRepository.GetLatest
type TweetRepositoryMockUpdateCommentExpectation ¶
type TweetRepositoryMockUpdateCommentExpectation struct { Counter uint64 // contains filtered or unexported fields }
TweetRepositoryMockUpdateCommentExpectation specifies expectation struct of the TweetRepository.UpdateComment
func (*TweetRepositoryMockUpdateCommentExpectation) Then ¶
func (e *TweetRepositoryMockUpdateCommentExpectation) Then(err error) *TweetRepositoryMock
Then sets up TweetRepository.UpdateComment return parameters for the expectation previously defined by the When method
type TweetRepositoryMockUpdateCommentParams ¶
type TweetRepositoryMockUpdateCommentParams struct {
// contains filtered or unexported fields
}
TweetRepositoryMockUpdateCommentParams contains parameters of the TweetRepository.UpdateComment
type TweetRepositoryMockUpdateCommentResults ¶
type TweetRepositoryMockUpdateCommentResults struct {
// contains filtered or unexported fields
}
TweetRepositoryMockUpdateCommentResults contains results of the TweetRepository.UpdateComment
type TweetRepositoryMockUpdateExpectation ¶
type TweetRepositoryMockUpdateExpectation struct { Counter uint64 // contains filtered or unexported fields }
TweetRepositoryMockUpdateExpectation specifies expectation struct of the TweetRepository.Update
func (*TweetRepositoryMockUpdateExpectation) Then ¶
func (e *TweetRepositoryMockUpdateExpectation) Then(err error) *TweetRepositoryMock
Then sets up TweetRepository.Update return parameters for the expectation previously defined by the When method
type TweetRepositoryMockUpdateParams ¶
type TweetRepositoryMockUpdateParams struct {
// contains filtered or unexported fields
}
TweetRepositoryMockUpdateParams contains parameters of the TweetRepository.Update
type TweetRepositoryMockUpdateResults ¶
type TweetRepositoryMockUpdateResults struct {
// contains filtered or unexported fields
}
TweetRepositoryMockUpdateResults contains results of the TweetRepository.Update
type UserProfilerMock ¶
type UserProfilerMock struct { DeactivateMock mUserProfilerMockDeactivate LoginMock mUserProfilerMockLogin RegisterMock mUserProfilerMockRegister UpdateCaptionMock mUserProfilerMockUpdateCaption // contains filtered or unexported fields }
UserProfilerMock implements usecase.UserProfiler
func NewUserProfilerMock ¶
func NewUserProfilerMock(t minimock.Tester) *UserProfilerMock
NewUserProfilerMock returns a mock for usecase.UserProfiler
func (*UserProfilerMock) Deactivate ¶
func (mmDeactivate *UserProfilerMock) Deactivate(ctx context.Context, userID int) (err error)
Deactivate implements usecase.UserProfiler
func (*UserProfilerMock) DeactivateAfterCounter ¶
func (mmDeactivate *UserProfilerMock) DeactivateAfterCounter() uint64
DeactivateAfterCounter returns a count of finished UserProfilerMock.Deactivate invocations
func (*UserProfilerMock) DeactivateBeforeCounter ¶
func (mmDeactivate *UserProfilerMock) DeactivateBeforeCounter() uint64
DeactivateBeforeCounter returns a count of UserProfilerMock.Deactivate invocations
func (*UserProfilerMock) Login ¶
func (mmLogin *UserProfilerMock) Login(ctx context.Context, email string) (up1 *entity.User, err error)
Login implements usecase.UserProfiler
func (*UserProfilerMock) LoginAfterCounter ¶
func (mmLogin *UserProfilerMock) LoginAfterCounter() uint64
LoginAfterCounter returns a count of finished UserProfilerMock.Login invocations
func (*UserProfilerMock) LoginBeforeCounter ¶
func (mmLogin *UserProfilerMock) LoginBeforeCounter() uint64
LoginBeforeCounter returns a count of UserProfilerMock.Login invocations
func (*UserProfilerMock) MinimockDeactivateDone ¶
func (m *UserProfilerMock) MinimockDeactivateDone() bool
MinimockDeactivateDone returns true if the count of the Deactivate invocations corresponds the number of defined expectations
func (*UserProfilerMock) MinimockDeactivateInspect ¶
func (m *UserProfilerMock) MinimockDeactivateInspect()
MinimockDeactivateInspect logs each unmet expectation
func (*UserProfilerMock) MinimockFinish ¶
func (m *UserProfilerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*UserProfilerMock) MinimockLoginDone ¶
func (m *UserProfilerMock) MinimockLoginDone() bool
MinimockLoginDone returns true if the count of the Login invocations corresponds the number of defined expectations
func (*UserProfilerMock) MinimockLoginInspect ¶
func (m *UserProfilerMock) MinimockLoginInspect()
MinimockLoginInspect logs each unmet expectation
func (*UserProfilerMock) MinimockRegisterDone ¶
func (m *UserProfilerMock) MinimockRegisterDone() bool
MinimockRegisterDone returns true if the count of the Register invocations corresponds the number of defined expectations
func (*UserProfilerMock) MinimockRegisterInspect ¶
func (m *UserProfilerMock) MinimockRegisterInspect()
MinimockRegisterInspect logs each unmet expectation
func (*UserProfilerMock) MinimockUpdateCaptionDone ¶
func (m *UserProfilerMock) MinimockUpdateCaptionDone() bool
MinimockUpdateCaptionDone returns true if the count of the UpdateCaption invocations corresponds the number of defined expectations
func (*UserProfilerMock) MinimockUpdateCaptionInspect ¶
func (m *UserProfilerMock) MinimockUpdateCaptionInspect()
MinimockUpdateCaptionInspect logs each unmet expectation
func (*UserProfilerMock) MinimockWait ¶
func (m *UserProfilerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*UserProfilerMock) Register ¶
func (mmRegister *UserProfilerMock) Register(ctx context.Context, name string, email string, caption string, birthDate time.Time) (up1 *entity.User, err error)
Register implements usecase.UserProfiler
func (*UserProfilerMock) RegisterAfterCounter ¶
func (mmRegister *UserProfilerMock) RegisterAfterCounter() uint64
RegisterAfterCounter returns a count of finished UserProfilerMock.Register invocations
func (*UserProfilerMock) RegisterBeforeCounter ¶
func (mmRegister *UserProfilerMock) RegisterBeforeCounter() uint64
RegisterBeforeCounter returns a count of UserProfilerMock.Register invocations
func (*UserProfilerMock) UpdateCaption ¶
func (mmUpdateCaption *UserProfilerMock) UpdateCaption(ctx context.Context, userID int, newCaption string) (err error)
UpdateCaption implements usecase.UserProfiler
func (*UserProfilerMock) UpdateCaptionAfterCounter ¶
func (mmUpdateCaption *UserProfilerMock) UpdateCaptionAfterCounter() uint64
UpdateCaptionAfterCounter returns a count of finished UserProfilerMock.UpdateCaption invocations
func (*UserProfilerMock) UpdateCaptionBeforeCounter ¶
func (mmUpdateCaption *UserProfilerMock) UpdateCaptionBeforeCounter() uint64
UpdateCaptionBeforeCounter returns a count of UserProfilerMock.UpdateCaption invocations
type UserProfilerMockDeactivateExpectation ¶
type UserProfilerMockDeactivateExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserProfilerMockDeactivateExpectation specifies expectation struct of the UserProfiler.Deactivate
func (*UserProfilerMockDeactivateExpectation) Then ¶
func (e *UserProfilerMockDeactivateExpectation) Then(err error) *UserProfilerMock
Then sets up UserProfiler.Deactivate return parameters for the expectation previously defined by the When method
type UserProfilerMockDeactivateParams ¶
type UserProfilerMockDeactivateParams struct {
// contains filtered or unexported fields
}
UserProfilerMockDeactivateParams contains parameters of the UserProfiler.Deactivate
type UserProfilerMockDeactivateResults ¶
type UserProfilerMockDeactivateResults struct {
// contains filtered or unexported fields
}
UserProfilerMockDeactivateResults contains results of the UserProfiler.Deactivate
type UserProfilerMockLoginExpectation ¶
type UserProfilerMockLoginExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserProfilerMockLoginExpectation specifies expectation struct of the UserProfiler.Login
func (*UserProfilerMockLoginExpectation) Then ¶
func (e *UserProfilerMockLoginExpectation) Then(up1 *entity.User, err error) *UserProfilerMock
Then sets up UserProfiler.Login return parameters for the expectation previously defined by the When method
type UserProfilerMockLoginParams ¶
type UserProfilerMockLoginParams struct {
// contains filtered or unexported fields
}
UserProfilerMockLoginParams contains parameters of the UserProfiler.Login
type UserProfilerMockLoginResults ¶
type UserProfilerMockLoginResults struct {
// contains filtered or unexported fields
}
UserProfilerMockLoginResults contains results of the UserProfiler.Login
type UserProfilerMockRegisterExpectation ¶
type UserProfilerMockRegisterExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserProfilerMockRegisterExpectation specifies expectation struct of the UserProfiler.Register
func (*UserProfilerMockRegisterExpectation) Then ¶
func (e *UserProfilerMockRegisterExpectation) Then(up1 *entity.User, err error) *UserProfilerMock
Then sets up UserProfiler.Register return parameters for the expectation previously defined by the When method
type UserProfilerMockRegisterParams ¶
type UserProfilerMockRegisterParams struct {
// contains filtered or unexported fields
}
UserProfilerMockRegisterParams contains parameters of the UserProfiler.Register
type UserProfilerMockRegisterResults ¶
type UserProfilerMockRegisterResults struct {
// contains filtered or unexported fields
}
UserProfilerMockRegisterResults contains results of the UserProfiler.Register
type UserProfilerMockUpdateCaptionExpectation ¶
type UserProfilerMockUpdateCaptionExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserProfilerMockUpdateCaptionExpectation specifies expectation struct of the UserProfiler.UpdateCaption
func (*UserProfilerMockUpdateCaptionExpectation) Then ¶
func (e *UserProfilerMockUpdateCaptionExpectation) Then(err error) *UserProfilerMock
Then sets up UserProfiler.UpdateCaption return parameters for the expectation previously defined by the When method
type UserProfilerMockUpdateCaptionParams ¶
type UserProfilerMockUpdateCaptionParams struct {
// contains filtered or unexported fields
}
UserProfilerMockUpdateCaptionParams contains parameters of the UserProfiler.UpdateCaption
type UserProfilerMockUpdateCaptionResults ¶
type UserProfilerMockUpdateCaptionResults struct {
// contains filtered or unexported fields
}
UserProfilerMockUpdateCaptionResults contains results of the UserProfiler.UpdateCaption
type UserRegistratorMock ¶
type UserRegistratorMock struct { DeactivateMock mUserRegistratorMockDeactivate LoginMock mUserRegistratorMockLogin RegisterMock mUserRegistratorMockRegister // contains filtered or unexported fields }
UserRegistratorMock implements usecase.UserRegistrator
func NewUserRegistratorMock ¶
func NewUserRegistratorMock(t minimock.Tester) *UserRegistratorMock
NewUserRegistratorMock returns a mock for usecase.UserRegistrator
func (*UserRegistratorMock) Deactivate ¶
func (mmDeactivate *UserRegistratorMock) Deactivate(ctx context.Context, userID int) (err error)
Deactivate implements usecase.UserRegistrator
func (*UserRegistratorMock) DeactivateAfterCounter ¶
func (mmDeactivate *UserRegistratorMock) DeactivateAfterCounter() uint64
DeactivateAfterCounter returns a count of finished UserRegistratorMock.Deactivate invocations
func (*UserRegistratorMock) DeactivateBeforeCounter ¶
func (mmDeactivate *UserRegistratorMock) DeactivateBeforeCounter() uint64
DeactivateBeforeCounter returns a count of UserRegistratorMock.Deactivate invocations
func (*UserRegistratorMock) Login ¶
func (mmLogin *UserRegistratorMock) Login(ctx context.Context, email string) (up1 *entity.User, err error)
Login implements usecase.UserRegistrator
func (*UserRegistratorMock) LoginAfterCounter ¶
func (mmLogin *UserRegistratorMock) LoginAfterCounter() uint64
LoginAfterCounter returns a count of finished UserRegistratorMock.Login invocations
func (*UserRegistratorMock) LoginBeforeCounter ¶
func (mmLogin *UserRegistratorMock) LoginBeforeCounter() uint64
LoginBeforeCounter returns a count of UserRegistratorMock.Login invocations
func (*UserRegistratorMock) MinimockDeactivateDone ¶
func (m *UserRegistratorMock) MinimockDeactivateDone() bool
MinimockDeactivateDone returns true if the count of the Deactivate invocations corresponds the number of defined expectations
func (*UserRegistratorMock) MinimockDeactivateInspect ¶
func (m *UserRegistratorMock) MinimockDeactivateInspect()
MinimockDeactivateInspect logs each unmet expectation
func (*UserRegistratorMock) MinimockFinish ¶
func (m *UserRegistratorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*UserRegistratorMock) MinimockLoginDone ¶
func (m *UserRegistratorMock) MinimockLoginDone() bool
MinimockLoginDone returns true if the count of the Login invocations corresponds the number of defined expectations
func (*UserRegistratorMock) MinimockLoginInspect ¶
func (m *UserRegistratorMock) MinimockLoginInspect()
MinimockLoginInspect logs each unmet expectation
func (*UserRegistratorMock) MinimockRegisterDone ¶
func (m *UserRegistratorMock) MinimockRegisterDone() bool
MinimockRegisterDone returns true if the count of the Register invocations corresponds the number of defined expectations
func (*UserRegistratorMock) MinimockRegisterInspect ¶
func (m *UserRegistratorMock) MinimockRegisterInspect()
MinimockRegisterInspect logs each unmet expectation
func (*UserRegistratorMock) MinimockWait ¶
func (m *UserRegistratorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*UserRegistratorMock) Register ¶
func (mmRegister *UserRegistratorMock) Register(ctx context.Context, name string, email string, caption string, birthDate time.Time) (up1 *entity.User, err error)
Register implements usecase.UserRegistrator
func (*UserRegistratorMock) RegisterAfterCounter ¶
func (mmRegister *UserRegistratorMock) RegisterAfterCounter() uint64
RegisterAfterCounter returns a count of finished UserRegistratorMock.Register invocations
func (*UserRegistratorMock) RegisterBeforeCounter ¶
func (mmRegister *UserRegistratorMock) RegisterBeforeCounter() uint64
RegisterBeforeCounter returns a count of UserRegistratorMock.Register invocations
type UserRegistratorMockDeactivateExpectation ¶
type UserRegistratorMockDeactivateExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRegistratorMockDeactivateExpectation specifies expectation struct of the UserRegistrator.Deactivate
func (*UserRegistratorMockDeactivateExpectation) Then ¶
func (e *UserRegistratorMockDeactivateExpectation) Then(err error) *UserRegistratorMock
Then sets up UserRegistrator.Deactivate return parameters for the expectation previously defined by the When method
type UserRegistratorMockDeactivateParams ¶
type UserRegistratorMockDeactivateParams struct {
// contains filtered or unexported fields
}
UserRegistratorMockDeactivateParams contains parameters of the UserRegistrator.Deactivate
type UserRegistratorMockDeactivateResults ¶
type UserRegistratorMockDeactivateResults struct {
// contains filtered or unexported fields
}
UserRegistratorMockDeactivateResults contains results of the UserRegistrator.Deactivate
type UserRegistratorMockLoginExpectation ¶
type UserRegistratorMockLoginExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRegistratorMockLoginExpectation specifies expectation struct of the UserRegistrator.Login
func (*UserRegistratorMockLoginExpectation) Then ¶
func (e *UserRegistratorMockLoginExpectation) Then(up1 *entity.User, err error) *UserRegistratorMock
Then sets up UserRegistrator.Login return parameters for the expectation previously defined by the When method
type UserRegistratorMockLoginParams ¶
type UserRegistratorMockLoginParams struct {
// contains filtered or unexported fields
}
UserRegistratorMockLoginParams contains parameters of the UserRegistrator.Login
type UserRegistratorMockLoginResults ¶
type UserRegistratorMockLoginResults struct {
// contains filtered or unexported fields
}
UserRegistratorMockLoginResults contains results of the UserRegistrator.Login
type UserRegistratorMockRegisterExpectation ¶
type UserRegistratorMockRegisterExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRegistratorMockRegisterExpectation specifies expectation struct of the UserRegistrator.Register
func (*UserRegistratorMockRegisterExpectation) Then ¶
func (e *UserRegistratorMockRegisterExpectation) Then(up1 *entity.User, err error) *UserRegistratorMock
Then sets up UserRegistrator.Register return parameters for the expectation previously defined by the When method
type UserRegistratorMockRegisterParams ¶
type UserRegistratorMockRegisterParams struct {
// contains filtered or unexported fields
}
UserRegistratorMockRegisterParams contains parameters of the UserRegistrator.Register
type UserRegistratorMockRegisterResults ¶
type UserRegistratorMockRegisterResults struct {
// contains filtered or unexported fields
}
UserRegistratorMockRegisterResults contains results of the UserRegistrator.Register
type UserRepositoryMock ¶
type UserRepositoryMock struct { AddMock mUserRepositoryMockAdd DeleteMock mUserRepositoryMockDelete GetMock mUserRepositoryMockGet GetAllMock mUserRepositoryMockGetAll GetByEmailMock mUserRepositoryMockGetByEmail UpdateCaptionMock mUserRepositoryMockUpdateCaption // contains filtered or unexported fields }
UserRepositoryMock implements usecase.UserRepository
func NewUserRepositoryMock ¶
func NewUserRepositoryMock(t minimock.Tester) *UserRepositoryMock
NewUserRepositoryMock returns a mock for usecase.UserRepository
func (*UserRepositoryMock) Add ¶
func (mmAdd *UserRepositoryMock) Add(ctx context.Context, name string, email string, caption string, birthDate time.Time) (id int, err error)
Add implements usecase.UserRepository
func (*UserRepositoryMock) AddAfterCounter ¶
func (mmAdd *UserRepositoryMock) AddAfterCounter() uint64
AddAfterCounter returns a count of finished UserRepositoryMock.Add invocations
func (*UserRepositoryMock) AddBeforeCounter ¶
func (mmAdd *UserRepositoryMock) AddBeforeCounter() uint64
AddBeforeCounter returns a count of UserRepositoryMock.Add invocations
func (*UserRepositoryMock) Delete ¶
func (mmDelete *UserRepositoryMock) Delete(ctx context.Context, userID int) (err error)
Delete implements usecase.UserRepository
func (*UserRepositoryMock) DeleteAfterCounter ¶
func (mmDelete *UserRepositoryMock) DeleteAfterCounter() uint64
DeleteAfterCounter returns a count of finished UserRepositoryMock.Delete invocations
func (*UserRepositoryMock) DeleteBeforeCounter ¶
func (mmDelete *UserRepositoryMock) DeleteBeforeCounter() uint64
DeleteBeforeCounter returns a count of UserRepositoryMock.Delete invocations
func (*UserRepositoryMock) GetAfterCounter ¶
func (mmGet *UserRepositoryMock) GetAfterCounter() uint64
GetAfterCounter returns a count of finished UserRepositoryMock.Get invocations
func (*UserRepositoryMock) GetAll ¶
func (mmGetAll *UserRepositoryMock) GetAll(ctx context.Context, limit int) (ua1 []entity.User, err error)
GetAll implements usecase.UserRepository
func (*UserRepositoryMock) GetAllAfterCounter ¶
func (mmGetAll *UserRepositoryMock) GetAllAfterCounter() uint64
GetAllAfterCounter returns a count of finished UserRepositoryMock.GetAll invocations
func (*UserRepositoryMock) GetAllBeforeCounter ¶
func (mmGetAll *UserRepositoryMock) GetAllBeforeCounter() uint64
GetAllBeforeCounter returns a count of UserRepositoryMock.GetAll invocations
func (*UserRepositoryMock) GetBeforeCounter ¶
func (mmGet *UserRepositoryMock) GetBeforeCounter() uint64
GetBeforeCounter returns a count of UserRepositoryMock.Get invocations
func (*UserRepositoryMock) GetByEmail ¶
func (mmGetByEmail *UserRepositoryMock) GetByEmail(ctx context.Context, email string) (up1 *entity.User, err error)
GetByEmail implements usecase.UserRepository
func (*UserRepositoryMock) GetByEmailAfterCounter ¶
func (mmGetByEmail *UserRepositoryMock) GetByEmailAfterCounter() uint64
GetByEmailAfterCounter returns a count of finished UserRepositoryMock.GetByEmail invocations
func (*UserRepositoryMock) GetByEmailBeforeCounter ¶
func (mmGetByEmail *UserRepositoryMock) GetByEmailBeforeCounter() uint64
GetByEmailBeforeCounter returns a count of UserRepositoryMock.GetByEmail invocations
func (*UserRepositoryMock) MinimockAddDone ¶
func (m *UserRepositoryMock) MinimockAddDone() bool
MinimockAddDone returns true if the count of the Add invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockAddInspect ¶
func (m *UserRepositoryMock) MinimockAddInspect()
MinimockAddInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockDeleteDone ¶
func (m *UserRepositoryMock) MinimockDeleteDone() bool
MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockDeleteInspect ¶
func (m *UserRepositoryMock) MinimockDeleteInspect()
MinimockDeleteInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockFinish ¶
func (m *UserRepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*UserRepositoryMock) MinimockGetAllDone ¶
func (m *UserRepositoryMock) MinimockGetAllDone() bool
MinimockGetAllDone returns true if the count of the GetAll invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockGetAllInspect ¶
func (m *UserRepositoryMock) MinimockGetAllInspect()
MinimockGetAllInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockGetByEmailDone ¶
func (m *UserRepositoryMock) MinimockGetByEmailDone() bool
MinimockGetByEmailDone returns true if the count of the GetByEmail invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockGetByEmailInspect ¶
func (m *UserRepositoryMock) MinimockGetByEmailInspect()
MinimockGetByEmailInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockGetDone ¶
func (m *UserRepositoryMock) MinimockGetDone() bool
MinimockGetDone returns true if the count of the Get invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockGetInspect ¶
func (m *UserRepositoryMock) MinimockGetInspect()
MinimockGetInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockUpdateCaptionDone ¶
func (m *UserRepositoryMock) MinimockUpdateCaptionDone() bool
MinimockUpdateCaptionDone returns true if the count of the UpdateCaption invocations corresponds the number of defined expectations
func (*UserRepositoryMock) MinimockUpdateCaptionInspect ¶
func (m *UserRepositoryMock) MinimockUpdateCaptionInspect()
MinimockUpdateCaptionInspect logs each unmet expectation
func (*UserRepositoryMock) MinimockWait ¶
func (m *UserRepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*UserRepositoryMock) UpdateCaption ¶
func (mmUpdateCaption *UserRepositoryMock) UpdateCaption(ctx context.Context, userID int, caption string) (err error)
UpdateCaption implements usecase.UserRepository
func (*UserRepositoryMock) UpdateCaptionAfterCounter ¶
func (mmUpdateCaption *UserRepositoryMock) UpdateCaptionAfterCounter() uint64
UpdateCaptionAfterCounter returns a count of finished UserRepositoryMock.UpdateCaption invocations
func (*UserRepositoryMock) UpdateCaptionBeforeCounter ¶
func (mmUpdateCaption *UserRepositoryMock) UpdateCaptionBeforeCounter() uint64
UpdateCaptionBeforeCounter returns a count of UserRepositoryMock.UpdateCaption invocations
type UserRepositoryMockAddExpectation ¶
type UserRepositoryMockAddExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockAddExpectation specifies expectation struct of the UserRepository.Add
func (*UserRepositoryMockAddExpectation) Then ¶
func (e *UserRepositoryMockAddExpectation) Then(id int, err error) *UserRepositoryMock
Then sets up UserRepository.Add return parameters for the expectation previously defined by the When method
type UserRepositoryMockAddParams ¶
type UserRepositoryMockAddParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockAddParams contains parameters of the UserRepository.Add
type UserRepositoryMockAddResults ¶
type UserRepositoryMockAddResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockAddResults contains results of the UserRepository.Add
type UserRepositoryMockDeleteExpectation ¶
type UserRepositoryMockDeleteExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockDeleteExpectation specifies expectation struct of the UserRepository.Delete
func (*UserRepositoryMockDeleteExpectation) Then ¶
func (e *UserRepositoryMockDeleteExpectation) Then(err error) *UserRepositoryMock
Then sets up UserRepository.Delete return parameters for the expectation previously defined by the When method
type UserRepositoryMockDeleteParams ¶
type UserRepositoryMockDeleteParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockDeleteParams contains parameters of the UserRepository.Delete
type UserRepositoryMockDeleteResults ¶
type UserRepositoryMockDeleteResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockDeleteResults contains results of the UserRepository.Delete
type UserRepositoryMockGetAllExpectation ¶
type UserRepositoryMockGetAllExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockGetAllExpectation specifies expectation struct of the UserRepository.GetAll
func (*UserRepositoryMockGetAllExpectation) Then ¶
func (e *UserRepositoryMockGetAllExpectation) Then(ua1 []entity.User, err error) *UserRepositoryMock
Then sets up UserRepository.GetAll return parameters for the expectation previously defined by the When method
type UserRepositoryMockGetAllParams ¶
type UserRepositoryMockGetAllParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetAllParams contains parameters of the UserRepository.GetAll
type UserRepositoryMockGetAllResults ¶
type UserRepositoryMockGetAllResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetAllResults contains results of the UserRepository.GetAll
type UserRepositoryMockGetByEmailExpectation ¶
type UserRepositoryMockGetByEmailExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockGetByEmailExpectation specifies expectation struct of the UserRepository.GetByEmail
func (*UserRepositoryMockGetByEmailExpectation) Then ¶
func (e *UserRepositoryMockGetByEmailExpectation) Then(up1 *entity.User, err error) *UserRepositoryMock
Then sets up UserRepository.GetByEmail return parameters for the expectation previously defined by the When method
type UserRepositoryMockGetByEmailParams ¶
type UserRepositoryMockGetByEmailParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetByEmailParams contains parameters of the UserRepository.GetByEmail
type UserRepositoryMockGetByEmailResults ¶
type UserRepositoryMockGetByEmailResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetByEmailResults contains results of the UserRepository.GetByEmail
type UserRepositoryMockGetExpectation ¶
type UserRepositoryMockGetExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockGetExpectation specifies expectation struct of the UserRepository.Get
func (*UserRepositoryMockGetExpectation) Then ¶
func (e *UserRepositoryMockGetExpectation) Then(up1 *entity.User, err error) *UserRepositoryMock
Then sets up UserRepository.Get return parameters for the expectation previously defined by the When method
type UserRepositoryMockGetParams ¶
type UserRepositoryMockGetParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetParams contains parameters of the UserRepository.Get
type UserRepositoryMockGetResults ¶
type UserRepositoryMockGetResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockGetResults contains results of the UserRepository.Get
type UserRepositoryMockUpdateCaptionExpectation ¶
type UserRepositoryMockUpdateCaptionExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserRepositoryMockUpdateCaptionExpectation specifies expectation struct of the UserRepository.UpdateCaption
func (*UserRepositoryMockUpdateCaptionExpectation) Then ¶
func (e *UserRepositoryMockUpdateCaptionExpectation) Then(err error) *UserRepositoryMock
Then sets up UserRepository.UpdateCaption return parameters for the expectation previously defined by the When method
type UserRepositoryMockUpdateCaptionParams ¶
type UserRepositoryMockUpdateCaptionParams struct {
// contains filtered or unexported fields
}
UserRepositoryMockUpdateCaptionParams contains parameters of the UserRepository.UpdateCaption
type UserRepositoryMockUpdateCaptionResults ¶
type UserRepositoryMockUpdateCaptionResults struct {
// contains filtered or unexported fields
}
UserRepositoryMockUpdateCaptionResults contains results of the UserRepository.UpdateCaption