Documentation ¶
Overview ¶
Package uc is a generated GoMock package.
Package uc is a generated GoMock package.
Index ¶
- type Interactor
- type MockArticleLogic
- func (m *MockArticleLogic) ArticleDelete(username, slug string) error
- func (m *MockArticleLogic) ArticleGet(slug, username string) (*domain.User, *domain.Article, error)
- func (m *MockArticleLogic) ArticlePost(username string, article domain.Article) (*domain.User, *domain.Article, error)
- func (m *MockArticleLogic) ArticlePut(username, slug string, fieldsToUpdate map[domain.ArticleUpdatableField]*string) (*domain.User, *domain.Article, error)
- func (m *MockArticleLogic) EXPECT() *MockArticleLogicMockRecorder
- type MockArticleLogicMockRecorder
- func (mr *MockArticleLogicMockRecorder) ArticleDelete(username, slug interface{}) *gomock.Call
- func (mr *MockArticleLogicMockRecorder) ArticleGet(slug, username interface{}) *gomock.Call
- func (mr *MockArticleLogicMockRecorder) ArticlePost(username, article interface{}) *gomock.Call
- func (mr *MockArticleLogicMockRecorder) ArticlePut(username, slug, fieldsToUpdate interface{}) *gomock.Call
- type MockArticleRW
- func (m *MockArticleRW) Create(arg0 domain.Article) (*domain.Article, error)
- func (m *MockArticleRW) Delete(slug string) error
- func (m *MockArticleRW) EXPECT() *MockArticleRWMockRecorder
- func (m *MockArticleRW) GetByAuthorsNameOrderedByMostRecentAsc(usernames []string) ([]domain.Article, error)
- func (m *MockArticleRW) GetBySlug(slug string) (*domain.Article, error)
- func (m *MockArticleRW) GetRecentFiltered(filters []domain.ArticleFilter) ([]domain.Article, error)
- func (m *MockArticleRW) Save(arg0 domain.Article) (*domain.Article, error)
- type MockArticleRWMockRecorder
- func (mr *MockArticleRWMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockArticleRWMockRecorder) Delete(slug interface{}) *gomock.Call
- func (mr *MockArticleRWMockRecorder) GetByAuthorsNameOrderedByMostRecentAsc(usernames interface{}) *gomock.Call
- func (mr *MockArticleRWMockRecorder) GetBySlug(slug interface{}) *gomock.Call
- func (mr *MockArticleRWMockRecorder) GetRecentFiltered(filters interface{}) *gomock.Call
- func (mr *MockArticleRWMockRecorder) Save(arg0 interface{}) *gomock.Call
- type MockArticleValidator
- type MockArticleValidatorMockRecorder
- type MockArticlesLogic
- func (m *MockArticlesLogic) ArticlesFeed(username string, limit, offset int) (*domain.User, domain.ArticleCollection, int, error)
- func (m *MockArticlesLogic) EXPECT() *MockArticlesLogicMockRecorder
- func (m *MockArticlesLogic) GetArticles(username string, limit, offset int, filters []domain.ArticleFilter) (*domain.User, domain.ArticleCollection, int, error)
- type MockArticlesLogicMockRecorder
- type MockAuthHandler
- type MockAuthHandlerMockRecorder
- type MockCommentRW
- type MockCommentRWMockRecorder
- type MockCommentsLogic
- func (m *MockCommentsLogic) CommentsDelete(username, slug string, id int) error
- func (m *MockCommentsLogic) CommentsGet(slug string) ([]domain.Comment, error)
- func (m *MockCommentsLogic) CommentsPost(username, slug, comment string) (*domain.Comment, error)
- func (m *MockCommentsLogic) EXPECT() *MockCommentsLogicMockRecorder
- type MockCommentsLogicMockRecorder
- type MockFavoritesLogic
- type MockFavoritesLogicMockRecorder
- type MockHandler
- func (m *MockHandler) ArticleDelete(username, slug string) error
- func (m *MockHandler) ArticleGet(slug, username string) (*domain.User, *domain.Article, error)
- func (m *MockHandler) ArticlePost(username string, article domain.Article) (*domain.User, *domain.Article, error)
- func (m *MockHandler) ArticlePut(username, slug string, fieldsToUpdate map[domain.ArticleUpdatableField]*string) (*domain.User, *domain.Article, error)
- func (m *MockHandler) ArticlesFeed(username string, limit, offset int) (*domain.User, domain.ArticleCollection, int, error)
- func (m *MockHandler) CommentsDelete(username, slug string, id int) error
- func (m *MockHandler) CommentsGet(slug string) ([]domain.Comment, error)
- func (m *MockHandler) CommentsPost(username, slug, comment string) (*domain.Comment, error)
- func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
- func (m *MockHandler) FavoritesUpdate(username, slug string, favortie bool) (*domain.User, *domain.Article, error)
- func (m *MockHandler) GetArticles(username string, limit, offset int, filters []domain.ArticleFilter) (*domain.User, domain.ArticleCollection, int, error)
- func (m *MockHandler) ProfileGet(requestingUserName, userName string) (*domain.User, bool, error)
- func (m *MockHandler) ProfileUpdateFollow(loggedInUsername, username string, follow bool) (*domain.User, error)
- func (m *MockHandler) Tags() ([]string, error)
- func (m *MockHandler) UserCreate(username, email, password string) (*domain.User, string, error)
- func (m *MockHandler) UserEdit(userName string, newUser map[domain.UserUpdatableProperty]*string) (*domain.User, string, error)
- func (m *MockHandler) UserGet(userName string) (*domain.User, string, error)
- func (m *MockHandler) UserLogin(email, password string) (*domain.User, string, error)
- type MockHandlerMockRecorder
- func (mr *MockHandlerMockRecorder) ArticleDelete(username, slug interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) ArticleGet(slug, username interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) ArticlePost(username, article interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) ArticlePut(username, slug, fieldsToUpdate interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) ArticlesFeed(username, limit, offset interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) CommentsDelete(username, slug, id interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) CommentsGet(slug interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) CommentsPost(username, slug, comment interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) FavoritesUpdate(username, slug, favortie interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) GetArticles(username, limit, offset, filters interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) ProfileGet(requestingUserName, userName interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) ProfileUpdateFollow(loggedInUsername, username, follow interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Tags() *gomock.Call
- func (mr *MockHandlerMockRecorder) UserCreate(username, email, password interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) UserEdit(userName, newUser interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) UserGet(userName interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) UserLogin(email, password interface{}) *gomock.Call
- type MockLogger
- type MockLoggerMockRecorder
- type MockProfileLogic
- type MockProfileLogicMockRecorder
- type MockSlugger
- type MockSluggerMockRecorder
- type MockTagsLogic
- type MockTagsLogicMockRecorder
- type MockTagsRW
- type MockTagsRWMockRecorder
- type MockUserLogic
- func (m *MockUserLogic) EXPECT() *MockUserLogicMockRecorder
- func (m *MockUserLogic) UserCreate(username, email, password string) (*domain.User, string, error)
- func (m *MockUserLogic) UserEdit(userName string, newUser map[domain.UserUpdatableProperty]*string) (*domain.User, string, error)
- func (m *MockUserLogic) UserGet(userName string) (*domain.User, string, error)
- func (m *MockUserLogic) UserLogin(email, password string) (*domain.User, string, error)
- type MockUserLogicMockRecorder
- func (mr *MockUserLogicMockRecorder) UserCreate(username, email, password interface{}) *gomock.Call
- func (mr *MockUserLogicMockRecorder) UserEdit(userName, newUser interface{}) *gomock.Call
- func (mr *MockUserLogicMockRecorder) UserGet(userName interface{}) *gomock.Call
- func (mr *MockUserLogicMockRecorder) UserLogin(email, password interface{}) *gomock.Call
- type MockUserRW
- func (m *MockUserRW) Create(username, email, password string) (*domain.User, error)
- func (m *MockUserRW) EXPECT() *MockUserRWMockRecorder
- func (m *MockUserRW) GetByEmailAndPassword(email, password string) (*domain.User, error)
- func (m *MockUserRW) GetByName(userName string) (*domain.User, error)
- func (m *MockUserRW) Save(user domain.User) error
- type MockUserRWMockRecorder
- func (mr *MockUserRWMockRecorder) Create(username, email, password interface{}) *gomock.Call
- func (mr *MockUserRWMockRecorder) GetByEmailAndPassword(email, password interface{}) *gomock.Call
- func (mr *MockUserRWMockRecorder) GetByName(userName interface{}) *gomock.Call
- func (mr *MockUserRWMockRecorder) Save(user interface{}) *gomock.Call
- type MockUserValidator
- type MockUserValidatorMockRecorder
- type SimpleLogger
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interactor ¶
type Interactor struct { Logger *MockLogger UserRW *MockUserRW ArticleRW *MockArticleRW UserValidator *MockUserValidator AuthHandler *MockAuthHandler Slugger *MockSlugger ArticleValidator *MockArticleValidator TagsRW *MockTagsRW CommentRW *MockCommentRW }
Interactor : is used in order to update its properties accordingly to each test conditions
func NewMockedInteractor ¶
func NewMockedInteractor(mockCtrl *gomock.Controller) Interactor
NewMockedInteractor : the Interactor constructor
func (Interactor) GetUCHandler ¶
func (i Interactor) GetUCHandler() uc.Handler
GetUCHandler : returns a uc.interactor in order to call its methods aka the use cases to test
type MockArticleLogic ¶
type MockArticleLogic struct {
// contains filtered or unexported fields
}
MockArticleLogic is a mock of ArticleLogic interface
func NewMockArticleLogic ¶
func NewMockArticleLogic(ctrl *gomock.Controller) *MockArticleLogic
NewMockArticleLogic creates a new mock instance
func (*MockArticleLogic) ArticleDelete ¶
func (m *MockArticleLogic) ArticleDelete(username, slug string) error
ArticleDelete mocks base method
func (*MockArticleLogic) ArticleGet ¶
ArticleGet mocks base method
func (*MockArticleLogic) ArticlePost ¶
func (m *MockArticleLogic) ArticlePost(username string, article domain.Article) (*domain.User, *domain.Article, error)
ArticlePost mocks base method
func (*MockArticleLogic) ArticlePut ¶
func (m *MockArticleLogic) ArticlePut(username, slug string, fieldsToUpdate map[domain.ArticleUpdatableField]*string) (*domain.User, *domain.Article, error)
ArticlePut mocks base method
func (*MockArticleLogic) EXPECT ¶
func (m *MockArticleLogic) EXPECT() *MockArticleLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockArticleLogicMockRecorder ¶
type MockArticleLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleLogicMockRecorder is the mock recorder for MockArticleLogic
func (*MockArticleLogicMockRecorder) ArticleDelete ¶
func (mr *MockArticleLogicMockRecorder) ArticleDelete(username, slug interface{}) *gomock.Call
ArticleDelete indicates an expected call of ArticleDelete
func (*MockArticleLogicMockRecorder) ArticleGet ¶
func (mr *MockArticleLogicMockRecorder) ArticleGet(slug, username interface{}) *gomock.Call
ArticleGet indicates an expected call of ArticleGet
func (*MockArticleLogicMockRecorder) ArticlePost ¶
func (mr *MockArticleLogicMockRecorder) ArticlePost(username, article interface{}) *gomock.Call
ArticlePost indicates an expected call of ArticlePost
func (*MockArticleLogicMockRecorder) ArticlePut ¶
func (mr *MockArticleLogicMockRecorder) ArticlePut(username, slug, fieldsToUpdate interface{}) *gomock.Call
ArticlePut indicates an expected call of ArticlePut
type MockArticleRW ¶
type MockArticleRW struct {
// contains filtered or unexported fields
}
MockArticleRW is a mock of ArticleRW interface
func NewMockArticleRW ¶
func NewMockArticleRW(ctrl *gomock.Controller) *MockArticleRW
NewMockArticleRW creates a new mock instance
func (*MockArticleRW) Delete ¶
func (m *MockArticleRW) Delete(slug string) error
Delete mocks base method
func (*MockArticleRW) EXPECT ¶
func (m *MockArticleRW) EXPECT() *MockArticleRWMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockArticleRW) GetByAuthorsNameOrderedByMostRecentAsc ¶
func (m *MockArticleRW) GetByAuthorsNameOrderedByMostRecentAsc(usernames []string) ([]domain.Article, error)
GetByAuthorsNameOrderedByMostRecentAsc mocks base method
func (*MockArticleRW) GetBySlug ¶
func (m *MockArticleRW) GetBySlug(slug string) (*domain.Article, error)
GetBySlug mocks base method
func (*MockArticleRW) GetRecentFiltered ¶
func (m *MockArticleRW) GetRecentFiltered(filters []domain.ArticleFilter) ([]domain.Article, error)
GetRecentFiltered mocks base method
type MockArticleRWMockRecorder ¶
type MockArticleRWMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleRWMockRecorder is the mock recorder for MockArticleRW
func (*MockArticleRWMockRecorder) Create ¶
func (mr *MockArticleRWMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockArticleRWMockRecorder) Delete ¶
func (mr *MockArticleRWMockRecorder) Delete(slug interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockArticleRWMockRecorder) GetByAuthorsNameOrderedByMostRecentAsc ¶
func (mr *MockArticleRWMockRecorder) GetByAuthorsNameOrderedByMostRecentAsc(usernames interface{}) *gomock.Call
GetByAuthorsNameOrderedByMostRecentAsc indicates an expected call of GetByAuthorsNameOrderedByMostRecentAsc
func (*MockArticleRWMockRecorder) GetBySlug ¶
func (mr *MockArticleRWMockRecorder) GetBySlug(slug interface{}) *gomock.Call
GetBySlug indicates an expected call of GetBySlug
func (*MockArticleRWMockRecorder) GetRecentFiltered ¶
func (mr *MockArticleRWMockRecorder) GetRecentFiltered(filters interface{}) *gomock.Call
GetRecentFiltered indicates an expected call of GetRecentFiltered
func (*MockArticleRWMockRecorder) Save ¶
func (mr *MockArticleRWMockRecorder) Save(arg0 interface{}) *gomock.Call
Save indicates an expected call of Save
type MockArticleValidator ¶
type MockArticleValidator struct {
// contains filtered or unexported fields
}
MockArticleValidator is a mock of ArticleValidator interface
func NewMockArticleValidator ¶
func NewMockArticleValidator(ctrl *gomock.Controller) *MockArticleValidator
NewMockArticleValidator creates a new mock instance
func (*MockArticleValidator) BeforeCreationCheck ¶
func (m *MockArticleValidator) BeforeCreationCheck(article *domain.Article) error
BeforeCreationCheck mocks base method
func (*MockArticleValidator) BeforeUpdateCheck ¶
func (m *MockArticleValidator) BeforeUpdateCheck(article *domain.Article) error
BeforeUpdateCheck mocks base method
func (*MockArticleValidator) EXPECT ¶
func (m *MockArticleValidator) EXPECT() *MockArticleValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockArticleValidatorMockRecorder ¶
type MockArticleValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleValidatorMockRecorder is the mock recorder for MockArticleValidator
func (*MockArticleValidatorMockRecorder) BeforeCreationCheck ¶
func (mr *MockArticleValidatorMockRecorder) BeforeCreationCheck(article interface{}) *gomock.Call
BeforeCreationCheck indicates an expected call of BeforeCreationCheck
func (*MockArticleValidatorMockRecorder) BeforeUpdateCheck ¶
func (mr *MockArticleValidatorMockRecorder) BeforeUpdateCheck(article interface{}) *gomock.Call
BeforeUpdateCheck indicates an expected call of BeforeUpdateCheck
type MockArticlesLogic ¶
type MockArticlesLogic struct {
// contains filtered or unexported fields
}
MockArticlesLogic is a mock of ArticlesLogic interface
func NewMockArticlesLogic ¶
func NewMockArticlesLogic(ctrl *gomock.Controller) *MockArticlesLogic
NewMockArticlesLogic creates a new mock instance
func (*MockArticlesLogic) ArticlesFeed ¶
func (m *MockArticlesLogic) ArticlesFeed(username string, limit, offset int) (*domain.User, domain.ArticleCollection, int, error)
ArticlesFeed mocks base method
func (*MockArticlesLogic) EXPECT ¶
func (m *MockArticlesLogic) EXPECT() *MockArticlesLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockArticlesLogic) GetArticles ¶
func (m *MockArticlesLogic) GetArticles(username string, limit, offset int, filters []domain.ArticleFilter) (*domain.User, domain.ArticleCollection, int, error)
GetArticles mocks base method
type MockArticlesLogicMockRecorder ¶
type MockArticlesLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockArticlesLogicMockRecorder is the mock recorder for MockArticlesLogic
func (*MockArticlesLogicMockRecorder) ArticlesFeed ¶
func (mr *MockArticlesLogicMockRecorder) ArticlesFeed(username, limit, offset interface{}) *gomock.Call
ArticlesFeed indicates an expected call of ArticlesFeed
func (*MockArticlesLogicMockRecorder) GetArticles ¶
func (mr *MockArticlesLogicMockRecorder) GetArticles(username, limit, offset, filters interface{}) *gomock.Call
GetArticles indicates an expected call of GetArticles
type MockAuthHandler ¶
type MockAuthHandler struct {
// contains filtered or unexported fields
}
MockAuthHandler is a mock of AuthHandler interface
func NewMockAuthHandler ¶
func NewMockAuthHandler(ctrl *gomock.Controller) *MockAuthHandler
NewMockAuthHandler creates a new mock instance
func (*MockAuthHandler) EXPECT ¶
func (m *MockAuthHandler) EXPECT() *MockAuthHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAuthHandler) GenUserToken ¶
func (m *MockAuthHandler) GenUserToken(userName string) (string, error)
GenUserToken mocks base method
func (*MockAuthHandler) GetUserName ¶
func (m *MockAuthHandler) GetUserName(token string) (string, error)
GetUserName mocks base method
type MockAuthHandlerMockRecorder ¶
type MockAuthHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthHandlerMockRecorder is the mock recorder for MockAuthHandler
func (*MockAuthHandlerMockRecorder) GenUserToken ¶
func (mr *MockAuthHandlerMockRecorder) GenUserToken(userName interface{}) *gomock.Call
GenUserToken indicates an expected call of GenUserToken
func (*MockAuthHandlerMockRecorder) GetUserName ¶
func (mr *MockAuthHandlerMockRecorder) GetUserName(token interface{}) *gomock.Call
GetUserName indicates an expected call of GetUserName
type MockCommentRW ¶
type MockCommentRW struct {
// contains filtered or unexported fields
}
MockCommentRW is a mock of CommentRW interface
func NewMockCommentRW ¶
func NewMockCommentRW(ctrl *gomock.Controller) *MockCommentRW
NewMockCommentRW creates a new mock instance
func (*MockCommentRW) Delete ¶
func (m *MockCommentRW) Delete(id int) error
Delete mocks base method
func (*MockCommentRW) EXPECT ¶
func (m *MockCommentRW) EXPECT() *MockCommentRWMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCommentRWMockRecorder ¶
type MockCommentRWMockRecorder struct {
// contains filtered or unexported fields
}
MockCommentRWMockRecorder is the mock recorder for MockCommentRW
func (*MockCommentRWMockRecorder) Create ¶
func (mr *MockCommentRWMockRecorder) Create(comment interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockCommentRWMockRecorder) Delete ¶
func (mr *MockCommentRWMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockCommentRWMockRecorder) GetByID ¶
func (mr *MockCommentRWMockRecorder) GetByID(id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
type MockCommentsLogic ¶
type MockCommentsLogic struct {
// contains filtered or unexported fields
}
MockCommentsLogic is a mock of CommentsLogic interface
func NewMockCommentsLogic ¶
func NewMockCommentsLogic(ctrl *gomock.Controller) *MockCommentsLogic
NewMockCommentsLogic creates a new mock instance
func (*MockCommentsLogic) CommentsDelete ¶
func (m *MockCommentsLogic) CommentsDelete(username, slug string, id int) error
CommentsDelete mocks base method
func (*MockCommentsLogic) CommentsGet ¶
func (m *MockCommentsLogic) CommentsGet(slug string) ([]domain.Comment, error)
CommentsGet mocks base method
func (*MockCommentsLogic) CommentsPost ¶
func (m *MockCommentsLogic) CommentsPost(username, slug, comment string) (*domain.Comment, error)
CommentsPost mocks base method
func (*MockCommentsLogic) EXPECT ¶
func (m *MockCommentsLogic) EXPECT() *MockCommentsLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCommentsLogicMockRecorder ¶
type MockCommentsLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockCommentsLogicMockRecorder is the mock recorder for MockCommentsLogic
func (*MockCommentsLogicMockRecorder) CommentsDelete ¶
func (mr *MockCommentsLogicMockRecorder) CommentsDelete(username, slug, id interface{}) *gomock.Call
CommentsDelete indicates an expected call of CommentsDelete
func (*MockCommentsLogicMockRecorder) CommentsGet ¶
func (mr *MockCommentsLogicMockRecorder) CommentsGet(slug interface{}) *gomock.Call
CommentsGet indicates an expected call of CommentsGet
func (*MockCommentsLogicMockRecorder) CommentsPost ¶
func (mr *MockCommentsLogicMockRecorder) CommentsPost(username, slug, comment interface{}) *gomock.Call
CommentsPost indicates an expected call of CommentsPost
type MockFavoritesLogic ¶
type MockFavoritesLogic struct {
// contains filtered or unexported fields
}
MockFavoritesLogic is a mock of FavoritesLogic interface
func NewMockFavoritesLogic ¶
func NewMockFavoritesLogic(ctrl *gomock.Controller) *MockFavoritesLogic
NewMockFavoritesLogic creates a new mock instance
func (*MockFavoritesLogic) EXPECT ¶
func (m *MockFavoritesLogic) EXPECT() *MockFavoritesLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFavoritesLogic) FavoritesUpdate ¶
func (m *MockFavoritesLogic) FavoritesUpdate(username, slug string, favortie bool) (*domain.User, *domain.Article, error)
FavoritesUpdate mocks base method
type MockFavoritesLogicMockRecorder ¶
type MockFavoritesLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockFavoritesLogicMockRecorder is the mock recorder for MockFavoritesLogic
func (*MockFavoritesLogicMockRecorder) FavoritesUpdate ¶
func (mr *MockFavoritesLogicMockRecorder) FavoritesUpdate(username, slug, favortie interface{}) *gomock.Call
FavoritesUpdate indicates an expected call of FavoritesUpdate
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance
func (*MockHandler) ArticleDelete ¶
func (m *MockHandler) ArticleDelete(username, slug string) error
ArticleDelete mocks base method
func (*MockHandler) ArticleGet ¶
ArticleGet mocks base method
func (*MockHandler) ArticlePost ¶
func (m *MockHandler) ArticlePost(username string, article domain.Article) (*domain.User, *domain.Article, error)
ArticlePost mocks base method
func (*MockHandler) ArticlePut ¶
func (m *MockHandler) ArticlePut(username, slug string, fieldsToUpdate map[domain.ArticleUpdatableField]*string) (*domain.User, *domain.Article, error)
ArticlePut mocks base method
func (*MockHandler) ArticlesFeed ¶
func (m *MockHandler) ArticlesFeed(username string, limit, offset int) (*domain.User, domain.ArticleCollection, int, error)
ArticlesFeed mocks base method
func (*MockHandler) CommentsDelete ¶
func (m *MockHandler) CommentsDelete(username, slug string, id int) error
CommentsDelete mocks base method
func (*MockHandler) CommentsGet ¶
func (m *MockHandler) CommentsGet(slug string) ([]domain.Comment, error)
CommentsGet mocks base method
func (*MockHandler) CommentsPost ¶
func (m *MockHandler) CommentsPost(username, slug, comment string) (*domain.Comment, error)
CommentsPost mocks base method
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHandler) FavoritesUpdate ¶
func (m *MockHandler) FavoritesUpdate(username, slug string, favortie bool) (*domain.User, *domain.Article, error)
FavoritesUpdate mocks base method
func (*MockHandler) GetArticles ¶
func (m *MockHandler) GetArticles(username string, limit, offset int, filters []domain.ArticleFilter) (*domain.User, domain.ArticleCollection, int, error)
GetArticles mocks base method
func (*MockHandler) ProfileGet ¶
ProfileGet mocks base method
func (*MockHandler) ProfileUpdateFollow ¶
func (m *MockHandler) ProfileUpdateFollow(loggedInUsername, username string, follow bool) (*domain.User, error)
ProfileUpdateFollow mocks base method
func (*MockHandler) UserCreate ¶
UserCreate mocks base method
func (*MockHandler) UserEdit ¶
func (m *MockHandler) UserEdit(userName string, newUser map[domain.UserUpdatableProperty]*string) (*domain.User, string, error)
UserEdit mocks base method
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler
func (*MockHandlerMockRecorder) ArticleDelete ¶
func (mr *MockHandlerMockRecorder) ArticleDelete(username, slug interface{}) *gomock.Call
ArticleDelete indicates an expected call of ArticleDelete
func (*MockHandlerMockRecorder) ArticleGet ¶
func (mr *MockHandlerMockRecorder) ArticleGet(slug, username interface{}) *gomock.Call
ArticleGet indicates an expected call of ArticleGet
func (*MockHandlerMockRecorder) ArticlePost ¶
func (mr *MockHandlerMockRecorder) ArticlePost(username, article interface{}) *gomock.Call
ArticlePost indicates an expected call of ArticlePost
func (*MockHandlerMockRecorder) ArticlePut ¶
func (mr *MockHandlerMockRecorder) ArticlePut(username, slug, fieldsToUpdate interface{}) *gomock.Call
ArticlePut indicates an expected call of ArticlePut
func (*MockHandlerMockRecorder) ArticlesFeed ¶
func (mr *MockHandlerMockRecorder) ArticlesFeed(username, limit, offset interface{}) *gomock.Call
ArticlesFeed indicates an expected call of ArticlesFeed
func (*MockHandlerMockRecorder) CommentsDelete ¶
func (mr *MockHandlerMockRecorder) CommentsDelete(username, slug, id interface{}) *gomock.Call
CommentsDelete indicates an expected call of CommentsDelete
func (*MockHandlerMockRecorder) CommentsGet ¶
func (mr *MockHandlerMockRecorder) CommentsGet(slug interface{}) *gomock.Call
CommentsGet indicates an expected call of CommentsGet
func (*MockHandlerMockRecorder) CommentsPost ¶
func (mr *MockHandlerMockRecorder) CommentsPost(username, slug, comment interface{}) *gomock.Call
CommentsPost indicates an expected call of CommentsPost
func (*MockHandlerMockRecorder) FavoritesUpdate ¶
func (mr *MockHandlerMockRecorder) FavoritesUpdate(username, slug, favortie interface{}) *gomock.Call
FavoritesUpdate indicates an expected call of FavoritesUpdate
func (*MockHandlerMockRecorder) GetArticles ¶
func (mr *MockHandlerMockRecorder) GetArticles(username, limit, offset, filters interface{}) *gomock.Call
GetArticles indicates an expected call of GetArticles
func (*MockHandlerMockRecorder) ProfileGet ¶
func (mr *MockHandlerMockRecorder) ProfileGet(requestingUserName, userName interface{}) *gomock.Call
ProfileGet indicates an expected call of ProfileGet
func (*MockHandlerMockRecorder) ProfileUpdateFollow ¶
func (mr *MockHandlerMockRecorder) ProfileUpdateFollow(loggedInUsername, username, follow interface{}) *gomock.Call
ProfileUpdateFollow indicates an expected call of ProfileUpdateFollow
func (*MockHandlerMockRecorder) Tags ¶
func (mr *MockHandlerMockRecorder) Tags() *gomock.Call
Tags indicates an expected call of Tags
func (*MockHandlerMockRecorder) UserCreate ¶
func (mr *MockHandlerMockRecorder) UserCreate(username, email, password interface{}) *gomock.Call
UserCreate indicates an expected call of UserCreate
func (*MockHandlerMockRecorder) UserEdit ¶
func (mr *MockHandlerMockRecorder) UserEdit(userName, newUser interface{}) *gomock.Call
UserEdit indicates an expected call of UserEdit
func (*MockHandlerMockRecorder) UserGet ¶
func (mr *MockHandlerMockRecorder) UserGet(userName interface{}) *gomock.Call
UserGet indicates an expected call of UserGet
func (*MockHandlerMockRecorder) UserLogin ¶
func (mr *MockHandlerMockRecorder) UserLogin(email, password interface{}) *gomock.Call
UserLogin indicates an expected call of UserLogin
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger
func (*MockLoggerMockRecorder) Log ¶
func (mr *MockLoggerMockRecorder) Log(arg0 ...interface{}) *gomock.Call
Log indicates an expected call of Log
type MockProfileLogic ¶
type MockProfileLogic struct {
// contains filtered or unexported fields
}
MockProfileLogic is a mock of ProfileLogic interface
func NewMockProfileLogic ¶
func NewMockProfileLogic(ctrl *gomock.Controller) *MockProfileLogic
NewMockProfileLogic creates a new mock instance
func (*MockProfileLogic) EXPECT ¶
func (m *MockProfileLogic) EXPECT() *MockProfileLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockProfileLogic) ProfileGet ¶
func (m *MockProfileLogic) ProfileGet(requestingUserName, userName string) (*domain.User, bool, error)
ProfileGet mocks base method
func (*MockProfileLogic) ProfileUpdateFollow ¶
func (m *MockProfileLogic) ProfileUpdateFollow(loggedInUsername, username string, follow bool) (*domain.User, error)
ProfileUpdateFollow mocks base method
type MockProfileLogicMockRecorder ¶
type MockProfileLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockProfileLogicMockRecorder is the mock recorder for MockProfileLogic
func (*MockProfileLogicMockRecorder) ProfileGet ¶
func (mr *MockProfileLogicMockRecorder) ProfileGet(requestingUserName, userName interface{}) *gomock.Call
ProfileGet indicates an expected call of ProfileGet
func (*MockProfileLogicMockRecorder) ProfileUpdateFollow ¶
func (mr *MockProfileLogicMockRecorder) ProfileUpdateFollow(loggedInUsername, username, follow interface{}) *gomock.Call
ProfileUpdateFollow indicates an expected call of ProfileUpdateFollow
type MockSlugger ¶
type MockSlugger struct {
// contains filtered or unexported fields
}
MockSlugger is a mock of Slugger interface
func NewMockSlugger ¶
func NewMockSlugger(ctrl *gomock.Controller) *MockSlugger
NewMockSlugger creates a new mock instance
func (*MockSlugger) EXPECT ¶
func (m *MockSlugger) EXPECT() *MockSluggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSlugger) NewSlug ¶
func (m *MockSlugger) NewSlug(arg0 string) string
NewSlug mocks base method
type MockSluggerMockRecorder ¶
type MockSluggerMockRecorder struct {
// contains filtered or unexported fields
}
MockSluggerMockRecorder is the mock recorder for MockSlugger
func (*MockSluggerMockRecorder) NewSlug ¶
func (mr *MockSluggerMockRecorder) NewSlug(arg0 interface{}) *gomock.Call
NewSlug indicates an expected call of NewSlug
type MockTagsLogic ¶
type MockTagsLogic struct {
// contains filtered or unexported fields
}
MockTagsLogic is a mock of TagsLogic interface
func NewMockTagsLogic ¶
func NewMockTagsLogic(ctrl *gomock.Controller) *MockTagsLogic
NewMockTagsLogic creates a new mock instance
func (*MockTagsLogic) EXPECT ¶
func (m *MockTagsLogic) EXPECT() *MockTagsLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTagsLogic) Tags ¶
func (m *MockTagsLogic) Tags() ([]string, error)
Tags mocks base method
type MockTagsLogicMockRecorder ¶
type MockTagsLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockTagsLogicMockRecorder is the mock recorder for MockTagsLogic
func (*MockTagsLogicMockRecorder) Tags ¶
func (mr *MockTagsLogicMockRecorder) Tags() *gomock.Call
Tags indicates an expected call of Tags
type MockTagsRW ¶
type MockTagsRW struct {
// contains filtered or unexported fields
}
MockTagsRW is a mock of TagsRW interface
func NewMockTagsRW ¶
func NewMockTagsRW(ctrl *gomock.Controller) *MockTagsRW
NewMockTagsRW creates a new mock instance
func (*MockTagsRW) EXPECT ¶
func (m *MockTagsRW) EXPECT() *MockTagsRWMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTagsRW) GetAll ¶
func (m *MockTagsRW) GetAll() ([]string, error)
GetAll mocks base method
type MockTagsRWMockRecorder ¶
type MockTagsRWMockRecorder struct {
// contains filtered or unexported fields
}
MockTagsRWMockRecorder is the mock recorder for MockTagsRW
func (*MockTagsRWMockRecorder) Add ¶
func (mr *MockTagsRWMockRecorder) Add(newTags interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockTagsRWMockRecorder) GetAll ¶
func (mr *MockTagsRWMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll
type MockUserLogic ¶
type MockUserLogic struct {
// contains filtered or unexported fields
}
MockUserLogic is a mock of UserLogic interface
func NewMockUserLogic ¶
func NewMockUserLogic(ctrl *gomock.Controller) *MockUserLogic
NewMockUserLogic creates a new mock instance
func (*MockUserLogic) EXPECT ¶
func (m *MockUserLogic) EXPECT() *MockUserLogicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUserLogic) UserCreate ¶
UserCreate mocks base method
func (*MockUserLogic) UserEdit ¶
func (m *MockUserLogic) UserEdit(userName string, newUser map[domain.UserUpdatableProperty]*string) (*domain.User, string, error)
UserEdit mocks base method
type MockUserLogicMockRecorder ¶
type MockUserLogicMockRecorder struct {
// contains filtered or unexported fields
}
MockUserLogicMockRecorder is the mock recorder for MockUserLogic
func (*MockUserLogicMockRecorder) UserCreate ¶
func (mr *MockUserLogicMockRecorder) UserCreate(username, email, password interface{}) *gomock.Call
UserCreate indicates an expected call of UserCreate
func (*MockUserLogicMockRecorder) UserEdit ¶
func (mr *MockUserLogicMockRecorder) UserEdit(userName, newUser interface{}) *gomock.Call
UserEdit indicates an expected call of UserEdit
func (*MockUserLogicMockRecorder) UserGet ¶
func (mr *MockUserLogicMockRecorder) UserGet(userName interface{}) *gomock.Call
UserGet indicates an expected call of UserGet
func (*MockUserLogicMockRecorder) UserLogin ¶
func (mr *MockUserLogicMockRecorder) UserLogin(email, password interface{}) *gomock.Call
UserLogin indicates an expected call of UserLogin
type MockUserRW ¶
type MockUserRW struct {
// contains filtered or unexported fields
}
MockUserRW is a mock of UserRW interface
func NewMockUserRW ¶
func NewMockUserRW(ctrl *gomock.Controller) *MockUserRW
NewMockUserRW creates a new mock instance
func (*MockUserRW) Create ¶
func (m *MockUserRW) Create(username, email, password string) (*domain.User, error)
Create mocks base method
func (*MockUserRW) EXPECT ¶
func (m *MockUserRW) EXPECT() *MockUserRWMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUserRW) GetByEmailAndPassword ¶
func (m *MockUserRW) GetByEmailAndPassword(email, password string) (*domain.User, error)
GetByEmailAndPassword mocks base method
type MockUserRWMockRecorder ¶
type MockUserRWMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRWMockRecorder is the mock recorder for MockUserRW
func (*MockUserRWMockRecorder) Create ¶
func (mr *MockUserRWMockRecorder) Create(username, email, password interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockUserRWMockRecorder) GetByEmailAndPassword ¶
func (mr *MockUserRWMockRecorder) GetByEmailAndPassword(email, password interface{}) *gomock.Call
GetByEmailAndPassword indicates an expected call of GetByEmailAndPassword
func (*MockUserRWMockRecorder) GetByName ¶
func (mr *MockUserRWMockRecorder) GetByName(userName interface{}) *gomock.Call
GetByName indicates an expected call of GetByName
func (*MockUserRWMockRecorder) Save ¶
func (mr *MockUserRWMockRecorder) Save(user interface{}) *gomock.Call
Save indicates an expected call of Save
type MockUserValidator ¶
type MockUserValidator struct {
// contains filtered or unexported fields
}
MockUserValidator is a mock of UserValidator interface
func NewMockUserValidator ¶
func NewMockUserValidator(ctrl *gomock.Controller) *MockUserValidator
NewMockUserValidator creates a new mock instance
func (*MockUserValidator) CheckUser ¶
func (m *MockUserValidator) CheckUser(user domain.User) error
CheckUser mocks base method
func (*MockUserValidator) EXPECT ¶
func (m *MockUserValidator) EXPECT() *MockUserValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockUserValidatorMockRecorder ¶
type MockUserValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockUserValidatorMockRecorder is the mock recorder for MockUserValidator
func (*MockUserValidatorMockRecorder) CheckUser ¶
func (mr *MockUserValidatorMockRecorder) CheckUser(user interface{}) *gomock.Call
CheckUser indicates an expected call of CheckUser
type SimpleLogger ¶
type SimpleLogger struct{}
func (SimpleLogger) Log ¶
func (SimpleLogger) Log(logs ...interface{})
type Tester ¶
type Tester struct { Calls func(*Interactor) ShouldPass bool }