Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
- type MockArticleItem
- func (m *MockArticleItem) Create(userId int, art models.Article) (int, error)
- func (m *MockArticleItem) Delete(userId, articleId int) error
- func (m *MockArticleItem) EXPECT() *MockArticleItemMockRecorder
- func (m *MockArticleItem) Get(userId, articleId int) (models.Article, error)
- func (m *MockArticleItem) SelectAll(userId int) ([]models.Article, error)
- func (m *MockArticleItem) Update(userId, articleId int, upArt models.UpdateArticle) error
- type MockArticleItemMockRecorder
- func (mr *MockArticleItemMockRecorder) Create(userId, art interface{}) *gomock.Call
- func (mr *MockArticleItemMockRecorder) Delete(userId, articleId interface{}) *gomock.Call
- func (mr *MockArticleItemMockRecorder) Get(userId, articleId interface{}) *gomock.Call
- func (mr *MockArticleItemMockRecorder) SelectAll(userId interface{}) *gomock.Call
- func (mr *MockArticleItemMockRecorder) Update(userId, articleId, upArt interface{}) *gomock.Call
- type MockAuthorization
- type MockAuthorizationMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockArticleItem ¶
type MockArticleItem struct {
// contains filtered or unexported fields
}
MockArticleItem is a mock of ArticleItem interface.
func NewMockArticleItem ¶
func NewMockArticleItem(ctrl *gomock.Controller) *MockArticleItem
NewMockArticleItem creates a new mock instance.
func (*MockArticleItem) Delete ¶
func (m *MockArticleItem) Delete(userId, articleId int) error
Delete mocks base method.
func (*MockArticleItem) EXPECT ¶
func (m *MockArticleItem) EXPECT() *MockArticleItemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockArticleItem) Get ¶
func (m *MockArticleItem) Get(userId, articleId int) (models.Article, error)
Get mocks base method.
func (*MockArticleItem) SelectAll ¶
func (m *MockArticleItem) SelectAll(userId int) ([]models.Article, error)
SelectAll mocks base method.
func (*MockArticleItem) Update ¶
func (m *MockArticleItem) Update(userId, articleId int, upArt models.UpdateArticle) error
Update mocks base method.
type MockArticleItemMockRecorder ¶
type MockArticleItemMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleItemMockRecorder is the mock recorder for MockArticleItem.
func (*MockArticleItemMockRecorder) Create ¶
func (mr *MockArticleItemMockRecorder) Create(userId, art interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockArticleItemMockRecorder) Delete ¶
func (mr *MockArticleItemMockRecorder) Delete(userId, articleId interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockArticleItemMockRecorder) Get ¶
func (mr *MockArticleItemMockRecorder) Get(userId, articleId interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockArticleItemMockRecorder) SelectAll ¶
func (mr *MockArticleItemMockRecorder) SelectAll(userId interface{}) *gomock.Call
SelectAll indicates an expected call of SelectAll.
func (*MockArticleItemMockRecorder) Update ¶
func (mr *MockArticleItemMockRecorder) Update(userId, articleId, upArt interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockAuthorization ¶
type MockAuthorization struct {
// contains filtered or unexported fields
}
MockAuthorization is a mock of Authorization interface.
func NewMockAuthorization ¶
func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization
NewMockAuthorization creates a new mock instance.
func (*MockAuthorization) CreateUser ¶
func (m *MockAuthorization) CreateUser(arg0 models.User) (int, error)
CreateUser mocks base method.
func (*MockAuthorization) EXPECT ¶
func (m *MockAuthorization) EXPECT() *MockAuthorizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorization) GenerateToken ¶
func (m *MockAuthorization) GenerateToken(email, password string) (string, error)
GenerateToken mocks base method.
func (*MockAuthorization) ParseToken ¶
func (m *MockAuthorization) ParseToken(token string) (int, error)
ParseToken mocks base method.
type MockAuthorizationMockRecorder ¶
type MockAuthorizationMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.
func (*MockAuthorizationMockRecorder) CreateUser ¶
func (mr *MockAuthorizationMockRecorder) CreateUser(arg0 interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockAuthorizationMockRecorder) GenerateToken ¶
func (mr *MockAuthorizationMockRecorder) GenerateToken(email, password interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
func (*MockAuthorizationMockRecorder) ParseToken ¶
func (mr *MockAuthorizationMockRecorder) ParseToken(token interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.