Documentation ¶
Overview ¶
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.
Index ¶
- type MockArticle
- func (m *MockArticle) All(arg0 ...content.QueryOpt) ([]content.Article, error)
- func (m *MockArticle) Count(arg0 content.User, arg1 ...content.QueryOpt) (int64, error)
- func (m *MockArticle) EXPECT() *MockArticleMockRecorder
- func (m *MockArticle) Favor(arg0 bool, arg1 content.User, arg2 ...content.QueryOpt) error
- func (m *MockArticle) ForUser(arg0 content.User, arg1 ...content.QueryOpt) ([]content.Article, error)
- func (m *MockArticle) IDs(arg0 content.User, arg1 ...content.QueryOpt) ([]content.ArticleID, error)
- func (m *MockArticle) Read(arg0 bool, arg1 content.User, arg2 ...content.QueryOpt) error
- func (m *MockArticle) RemoveStaleUnreadRecords() error
- type MockArticleMockRecorder
- func (mr *MockArticleMockRecorder) All(arg0 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) Count(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) Favor(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) ForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) IDs(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) Read(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockArticleMockRecorder) RemoveStaleUnreadRecords() *gomock.Call
- type MockExtract
- type MockExtractMockRecorder
- type MockFeed
- func (m *MockFeed) All() ([]content.Feed, error)
- func (m *MockFeed) AttachTo(arg0 content.Feed, arg1 content.User) error
- func (m *MockFeed) Delete(arg0 content.Feed) error
- func (m *MockFeed) DetachFrom(arg0 content.Feed, arg1 content.User) error
- func (m *MockFeed) EXPECT() *MockFeedMockRecorder
- func (m *MockFeed) FindByLink(arg0 string) (content.Feed, error)
- func (m *MockFeed) ForTag(arg0 content.Tag, arg1 content.User) ([]content.Feed, error)
- func (m *MockFeed) ForUser(arg0 content.User) ([]content.Feed, error)
- func (m *MockFeed) Get(arg0 content.FeedID, arg1 content.User) (content.Feed, error)
- func (m *MockFeed) IDs() ([]content.FeedID, error)
- func (m *MockFeed) SetUserTags(arg0 content.Feed, arg1 content.User, arg2 []*content.Tag) error
- func (m *MockFeed) Unsubscribed() ([]content.Feed, error)
- func (m *MockFeed) Update(arg0 *content.Feed) ([]content.Article, error)
- func (m *MockFeed) Users(arg0 content.Feed) ([]content.User, error)
- type MockFeedMockRecorder
- func (mr *MockFeedMockRecorder) All() *gomock.Call
- func (mr *MockFeedMockRecorder) AttachTo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) DetachFrom(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) FindByLink(arg0 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) ForTag(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) ForUser(arg0 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) IDs() *gomock.Call
- func (mr *MockFeedMockRecorder) SetUserTags(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) Unsubscribed() *gomock.Call
- func (mr *MockFeedMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockFeedMockRecorder) Users(arg0 interface{}) *gomock.Call
- type MockScores
- type MockScoresMockRecorder
- type MockService
- func (m *MockService) ArticleRepo() repo.Article
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) ExtractRepo() repo.Extract
- func (m *MockService) FeedRepo() repo.Feed
- func (m *MockService) ScoresRepo() repo.Scores
- func (m *MockService) SubscriptionRepo() repo.Subscription
- func (m *MockService) TagRepo() repo.Tag
- func (m *MockService) ThumbnailRepo() repo.Thumbnail
- func (m *MockService) UserRepo() repo.User
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) ArticleRepo() *gomock.Call
- func (mr *MockServiceMockRecorder) ExtractRepo() *gomock.Call
- func (mr *MockServiceMockRecorder) FeedRepo() *gomock.Call
- func (mr *MockServiceMockRecorder) ScoresRepo() *gomock.Call
- func (mr *MockServiceMockRecorder) SubscriptionRepo() *gomock.Call
- func (mr *MockServiceMockRecorder) TagRepo() *gomock.Call
- func (mr *MockServiceMockRecorder) ThumbnailRepo() *gomock.Call
- func (mr *MockServiceMockRecorder) UserRepo() *gomock.Call
- type MockSubscription
- type MockSubscriptionMockRecorder
- type MockTag
- func (m *MockTag) EXPECT() *MockTagMockRecorder
- func (m *MockTag) FeedIDs(arg0 content.Tag, arg1 content.User) ([]content.FeedID, error)
- func (m *MockTag) ForFeed(arg0 content.Feed, arg1 content.User) ([]content.Tag, error)
- func (m *MockTag) ForUser(arg0 content.User) ([]content.Tag, error)
- func (m *MockTag) Get(arg0 content.TagID, arg1 content.User) (content.Tag, error)
- type MockTagMockRecorder
- type MockThumbnail
- type MockThumbnailMockRecorder
- type MockUser
- func (m *MockUser) All() ([]content.User, error)
- func (m *MockUser) Delete(arg0 content.User) error
- func (m *MockUser) EXPECT() *MockUserMockRecorder
- func (m *MockUser) FindByMD5(arg0 []byte) (content.User, error)
- func (m *MockUser) Get(arg0 content.Login) (content.User, error)
- func (m *MockUser) Update(arg0 content.User) error
- type MockUserMockRecorder
- func (mr *MockUserMockRecorder) All() *gomock.Call
- func (mr *MockUserMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockUserMockRecorder) FindByMD5(arg0 interface{}) *gomock.Call
- func (mr *MockUserMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockUserMockRecorder) Update(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockArticle ¶
type MockArticle struct {
// contains filtered or unexported fields
}
MockArticle is a mock of Article interface
func NewMockArticle ¶
func NewMockArticle(ctrl *gomock.Controller) *MockArticle
NewMockArticle creates a new mock instance
func (*MockArticle) EXPECT ¶
func (m *MockArticle) EXPECT() *MockArticleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockArticle) ForUser ¶
func (m *MockArticle) ForUser(arg0 content.User, arg1 ...content.QueryOpt) ([]content.Article, error)
ForUser mocks base method
func (*MockArticle) RemoveStaleUnreadRecords ¶
func (m *MockArticle) RemoveStaleUnreadRecords() error
RemoveStaleUnreadRecords mocks base method
type MockArticleMockRecorder ¶
type MockArticleMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleMockRecorder is the mock recorder for MockArticle
func (*MockArticleMockRecorder) All ¶
func (mr *MockArticleMockRecorder) All(arg0 ...interface{}) *gomock.Call
All indicates an expected call of All
func (*MockArticleMockRecorder) Count ¶
func (mr *MockArticleMockRecorder) Count(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Count indicates an expected call of Count
func (*MockArticleMockRecorder) Favor ¶
func (mr *MockArticleMockRecorder) Favor(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Favor indicates an expected call of Favor
func (*MockArticleMockRecorder) ForUser ¶
func (mr *MockArticleMockRecorder) ForUser(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ForUser indicates an expected call of ForUser
func (*MockArticleMockRecorder) IDs ¶
func (mr *MockArticleMockRecorder) IDs(arg0 interface{}, arg1 ...interface{}) *gomock.Call
IDs indicates an expected call of IDs
func (*MockArticleMockRecorder) Read ¶
func (mr *MockArticleMockRecorder) Read(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockArticleMockRecorder) RemoveStaleUnreadRecords ¶
func (mr *MockArticleMockRecorder) RemoveStaleUnreadRecords() *gomock.Call
RemoveStaleUnreadRecords indicates an expected call of RemoveStaleUnreadRecords
type MockExtract ¶
type MockExtract struct {
// contains filtered or unexported fields
}
MockExtract is a mock of Extract interface
func NewMockExtract ¶
func NewMockExtract(ctrl *gomock.Controller) *MockExtract
NewMockExtract creates a new mock instance
func (*MockExtract) EXPECT ¶
func (m *MockExtract) EXPECT() *MockExtractMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockExtractMockRecorder ¶
type MockExtractMockRecorder struct {
// contains filtered or unexported fields
}
MockExtractMockRecorder is the mock recorder for MockExtract
func (*MockExtractMockRecorder) Get ¶
func (mr *MockExtractMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockExtractMockRecorder) Update ¶
func (mr *MockExtractMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
type MockFeed ¶
type MockFeed struct {
// contains filtered or unexported fields
}
MockFeed is a mock of Feed interface
func NewMockFeed ¶
func NewMockFeed(ctrl *gomock.Controller) *MockFeed
NewMockFeed creates a new mock instance
func (*MockFeed) DetachFrom ¶
DetachFrom mocks base method
func (*MockFeed) EXPECT ¶
func (m *MockFeed) EXPECT() *MockFeedMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFeed) FindByLink ¶
FindByLink mocks base method
func (*MockFeed) SetUserTags ¶
SetUserTags mocks base method
func (*MockFeed) Unsubscribed ¶
Unsubscribed mocks base method
type MockFeedMockRecorder ¶
type MockFeedMockRecorder struct {
// contains filtered or unexported fields
}
MockFeedMockRecorder is the mock recorder for MockFeed
func (*MockFeedMockRecorder) All ¶
func (mr *MockFeedMockRecorder) All() *gomock.Call
All indicates an expected call of All
func (*MockFeedMockRecorder) AttachTo ¶
func (mr *MockFeedMockRecorder) AttachTo(arg0, arg1 interface{}) *gomock.Call
AttachTo indicates an expected call of AttachTo
func (*MockFeedMockRecorder) Delete ¶
func (mr *MockFeedMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockFeedMockRecorder) DetachFrom ¶
func (mr *MockFeedMockRecorder) DetachFrom(arg0, arg1 interface{}) *gomock.Call
DetachFrom indicates an expected call of DetachFrom
func (*MockFeedMockRecorder) FindByLink ¶
func (mr *MockFeedMockRecorder) FindByLink(arg0 interface{}) *gomock.Call
FindByLink indicates an expected call of FindByLink
func (*MockFeedMockRecorder) ForTag ¶
func (mr *MockFeedMockRecorder) ForTag(arg0, arg1 interface{}) *gomock.Call
ForTag indicates an expected call of ForTag
func (*MockFeedMockRecorder) ForUser ¶
func (mr *MockFeedMockRecorder) ForUser(arg0 interface{}) *gomock.Call
ForUser indicates an expected call of ForUser
func (*MockFeedMockRecorder) Get ¶
func (mr *MockFeedMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockFeedMockRecorder) IDs ¶
func (mr *MockFeedMockRecorder) IDs() *gomock.Call
IDs indicates an expected call of IDs
func (*MockFeedMockRecorder) SetUserTags ¶
func (mr *MockFeedMockRecorder) SetUserTags(arg0, arg1, arg2 interface{}) *gomock.Call
SetUserTags indicates an expected call of SetUserTags
func (*MockFeedMockRecorder) Unsubscribed ¶
func (mr *MockFeedMockRecorder) Unsubscribed() *gomock.Call
Unsubscribed indicates an expected call of Unsubscribed
func (*MockFeedMockRecorder) Update ¶
func (mr *MockFeedMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockFeedMockRecorder) Users ¶
func (mr *MockFeedMockRecorder) Users(arg0 interface{}) *gomock.Call
Users indicates an expected call of Users
type MockScores ¶
type MockScores struct {
// contains filtered or unexported fields
}
MockScores is a mock of Scores interface
func NewMockScores ¶
func NewMockScores(ctrl *gomock.Controller) *MockScores
NewMockScores creates a new mock instance
func (*MockScores) EXPECT ¶
func (m *MockScores) EXPECT() *MockScoresMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockScoresMockRecorder ¶
type MockScoresMockRecorder struct {
// contains filtered or unexported fields
}
MockScoresMockRecorder is the mock recorder for MockScores
func (*MockScoresMockRecorder) Get ¶
func (mr *MockScoresMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockScoresMockRecorder) Update ¶
func (mr *MockScoresMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) ArticleRepo ¶
func (m *MockService) ArticleRepo() repo.Article
ArticleRepo mocks base method
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) ExtractRepo ¶
func (m *MockService) ExtractRepo() repo.Extract
ExtractRepo mocks base method
func (*MockService) FeedRepo ¶
func (m *MockService) FeedRepo() repo.Feed
FeedRepo mocks base method
func (*MockService) ScoresRepo ¶
func (m *MockService) ScoresRepo() repo.Scores
ScoresRepo mocks base method
func (*MockService) SubscriptionRepo ¶
func (m *MockService) SubscriptionRepo() repo.Subscription
SubscriptionRepo mocks base method
func (*MockService) ThumbnailRepo ¶
func (m *MockService) ThumbnailRepo() repo.Thumbnail
ThumbnailRepo mocks base method
func (*MockService) UserRepo ¶
func (m *MockService) UserRepo() repo.User
UserRepo mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) ArticleRepo ¶
func (mr *MockServiceMockRecorder) ArticleRepo() *gomock.Call
ArticleRepo indicates an expected call of ArticleRepo
func (*MockServiceMockRecorder) ExtractRepo ¶
func (mr *MockServiceMockRecorder) ExtractRepo() *gomock.Call
ExtractRepo indicates an expected call of ExtractRepo
func (*MockServiceMockRecorder) FeedRepo ¶
func (mr *MockServiceMockRecorder) FeedRepo() *gomock.Call
FeedRepo indicates an expected call of FeedRepo
func (*MockServiceMockRecorder) ScoresRepo ¶
func (mr *MockServiceMockRecorder) ScoresRepo() *gomock.Call
ScoresRepo indicates an expected call of ScoresRepo
func (*MockServiceMockRecorder) SubscriptionRepo ¶
func (mr *MockServiceMockRecorder) SubscriptionRepo() *gomock.Call
SubscriptionRepo indicates an expected call of SubscriptionRepo
func (*MockServiceMockRecorder) TagRepo ¶
func (mr *MockServiceMockRecorder) TagRepo() *gomock.Call
TagRepo indicates an expected call of TagRepo
func (*MockServiceMockRecorder) ThumbnailRepo ¶
func (mr *MockServiceMockRecorder) ThumbnailRepo() *gomock.Call
ThumbnailRepo indicates an expected call of ThumbnailRepo
func (*MockServiceMockRecorder) UserRepo ¶
func (mr *MockServiceMockRecorder) UserRepo() *gomock.Call
UserRepo indicates an expected call of UserRepo
type MockSubscription ¶
type MockSubscription struct {
// contains filtered or unexported fields
}
MockSubscription is a mock of Subscription interface
func NewMockSubscription ¶
func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription
NewMockSubscription creates a new mock instance
func (*MockSubscription) All ¶
func (m *MockSubscription) All() ([]content.Subscription, error)
All mocks base method
func (*MockSubscription) EXPECT ¶
func (m *MockSubscription) EXPECT() *MockSubscriptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSubscription) Get ¶
func (m *MockSubscription) Get(arg0 content.Feed) (content.Subscription, error)
Get mocks base method
func (*MockSubscription) Update ¶
func (m *MockSubscription) Update(arg0 content.Subscription) error
Update mocks base method
type MockSubscriptionMockRecorder ¶
type MockSubscriptionMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriptionMockRecorder is the mock recorder for MockSubscription
func (*MockSubscriptionMockRecorder) All ¶
func (mr *MockSubscriptionMockRecorder) All() *gomock.Call
All indicates an expected call of All
func (*MockSubscriptionMockRecorder) Get ¶
func (mr *MockSubscriptionMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockSubscriptionMockRecorder) Update ¶
func (mr *MockSubscriptionMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
type MockTag ¶
type MockTag struct {
// contains filtered or unexported fields
}
MockTag is a mock of Tag interface
func NewMockTag ¶
func NewMockTag(ctrl *gomock.Controller) *MockTag
NewMockTag creates a new mock instance
func (*MockTag) EXPECT ¶
func (m *MockTag) EXPECT() *MockTagMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTagMockRecorder ¶
type MockTagMockRecorder struct {
// contains filtered or unexported fields
}
MockTagMockRecorder is the mock recorder for MockTag
func (*MockTagMockRecorder) FeedIDs ¶
func (mr *MockTagMockRecorder) FeedIDs(arg0, arg1 interface{}) *gomock.Call
FeedIDs indicates an expected call of FeedIDs
func (*MockTagMockRecorder) ForFeed ¶
func (mr *MockTagMockRecorder) ForFeed(arg0, arg1 interface{}) *gomock.Call
ForFeed indicates an expected call of ForFeed
func (*MockTagMockRecorder) ForUser ¶
func (mr *MockTagMockRecorder) ForUser(arg0 interface{}) *gomock.Call
ForUser indicates an expected call of ForUser
func (*MockTagMockRecorder) Get ¶
func (mr *MockTagMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
type MockThumbnail ¶
type MockThumbnail struct {
// contains filtered or unexported fields
}
MockThumbnail is a mock of Thumbnail interface
func NewMockThumbnail ¶
func NewMockThumbnail(ctrl *gomock.Controller) *MockThumbnail
NewMockThumbnail creates a new mock instance
func (*MockThumbnail) EXPECT ¶
func (m *MockThumbnail) EXPECT() *MockThumbnailMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockThumbnailMockRecorder ¶
type MockThumbnailMockRecorder struct {
// contains filtered or unexported fields
}
MockThumbnailMockRecorder is the mock recorder for MockThumbnail
func (*MockThumbnailMockRecorder) Get ¶
func (mr *MockThumbnailMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockThumbnailMockRecorder) Update ¶
func (mr *MockThumbnailMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
type MockUser ¶
type MockUser struct {
// contains filtered or unexported fields
}
MockUser is a mock of User interface
func NewMockUser ¶
func NewMockUser(ctrl *gomock.Controller) *MockUser
NewMockUser creates a new mock instance
func (*MockUser) EXPECT ¶
func (m *MockUser) EXPECT() *MockUserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockUserMockRecorder ¶
type MockUserMockRecorder struct {
// contains filtered or unexported fields
}
MockUserMockRecorder is the mock recorder for MockUser
func (*MockUserMockRecorder) All ¶
func (mr *MockUserMockRecorder) All() *gomock.Call
All indicates an expected call of All
func (*MockUserMockRecorder) Delete ¶
func (mr *MockUserMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockUserMockRecorder) FindByMD5 ¶
func (mr *MockUserMockRecorder) FindByMD5(arg0 interface{}) *gomock.Call
FindByMD5 indicates an expected call of FindByMD5
func (*MockUserMockRecorder) Get ¶
func (mr *MockUserMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockUserMockRecorder) Update ¶
func (mr *MockUserMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update