Documentation ¶
Overview ¶
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.
Index ¶
- type MockAuthRepository
- func (m *MockAuthRepository) CreateCookie(token string, expiresIn time.Duration) (string, error)
- func (m *MockAuthRepository) EXPECT() *MockAuthRepositoryMockRecorder
- func (m *MockAuthRepository) IsValid(token string) (bool, error)
- func (m *MockAuthRepository) IsValidCookie(cookie string) (bool, error)
- type MockAuthRepositoryMockRecorder
- type MockPost
- func (m *MockPost) Count(condition string, params []interface{}) (int, error)
- func (m *MockPost) Create(post *entity.Post) error
- func (m *MockPost) Delete(id string) error
- func (m *MockPost) EXPECT() *MockPostMockRecorder
- func (m *MockPost) FindAll(offset, pageSize int, condition string, params []interface{}, ...) ([]*entity.Post, error)
- func (m *MockPost) FindByID(id string) (*entity.Post, error)
- func (m *MockPost) FindByPermalink(permalink string) (*entity.Post, error)
- func (m *MockPost) Update(post *entity.Post) error
- type MockPostMockRecorder
- func (mr *MockPostMockRecorder) Count(condition, params interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) Create(post interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) FindAll(offset, pageSize, condition, params, sortCondition interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) FindByID(id interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) FindByPermalink(permalink interface{}) *gomock.Call
- func (mr *MockPostMockRecorder) Update(post interface{}) *gomock.Call
- type MockPostsTags
- func (m *MockPostsTags) Delete(id string) error
- func (m *MockPostsTags) DeleteByPostID(postID string) error
- func (m *MockPostsTags) EXPECT() *MockPostsTagsMockRecorder
- func (m *MockPostsTags) FindByPostIDAndTagName(postID, tagName string) (*entity.PostsTags, error)
- func (m *MockPostsTags) Store(postsTags []*entity.PostsTags) error
- type MockPostsTagsMockRecorder
- func (mr *MockPostsTagsMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockPostsTagsMockRecorder) DeleteByPostID(postID interface{}) *gomock.Call
- func (mr *MockPostsTagsMockRecorder) FindByPostIDAndTagName(postID, tagName interface{}) *gomock.Call
- func (mr *MockPostsTagsMockRecorder) Store(postsTags interface{}) *gomock.Call
- type MockTag
- func (m *MockTag) Count() (int, error)
- func (m *MockTag) Delete(id string) error
- func (m *MockTag) EXPECT() *MockTagMockRecorder
- func (m *MockTag) FindAll(offset, pageSize int, condition string, params []interface{}) ([]*entity.Tag, error)
- func (m *MockTag) FindByID(id string) (*entity.Tag, error)
- func (m *MockTag) FindByName(name string) (*entity.Tag, error)
- func (m *MockTag) Store(tag *entity.Tag) error
- type MockTagMockRecorder
- func (mr *MockTagMockRecorder) Count() *gomock.Call
- func (mr *MockTagMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockTagMockRecorder) FindAll(offset, pageSize, condition, params interface{}) *gomock.Call
- func (mr *MockTagMockRecorder) FindByID(id interface{}) *gomock.Call
- func (mr *MockTagMockRecorder) FindByName(name interface{}) *gomock.Call
- func (mr *MockTagMockRecorder) Store(tag interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthRepository ¶
type MockAuthRepository struct {
// contains filtered or unexported fields
}
MockAuthRepository is a mock of AuthRepository interface.
func NewMockAuthRepository ¶
func NewMockAuthRepository(ctrl *gomock.Controller) *MockAuthRepository
NewMockAuthRepository creates a new mock instance.
func (*MockAuthRepository) CreateCookie ¶
CreateCookie mocks base method.
func (*MockAuthRepository) EXPECT ¶
func (m *MockAuthRepository) EXPECT() *MockAuthRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthRepository) IsValid ¶
func (m *MockAuthRepository) IsValid(token string) (bool, error)
IsValid mocks base method.
func (*MockAuthRepository) IsValidCookie ¶
func (m *MockAuthRepository) IsValidCookie(cookie string) (bool, error)
IsValidCookie mocks base method.
type MockAuthRepositoryMockRecorder ¶
type MockAuthRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthRepositoryMockRecorder is the mock recorder for MockAuthRepository.
func (*MockAuthRepositoryMockRecorder) CreateCookie ¶
func (mr *MockAuthRepositoryMockRecorder) CreateCookie(token, expiresIn interface{}) *gomock.Call
CreateCookie indicates an expected call of CreateCookie.
func (*MockAuthRepositoryMockRecorder) IsValid ¶
func (mr *MockAuthRepositoryMockRecorder) IsValid(token interface{}) *gomock.Call
IsValid indicates an expected call of IsValid.
func (*MockAuthRepositoryMockRecorder) IsValidCookie ¶
func (mr *MockAuthRepositoryMockRecorder) IsValidCookie(cookie interface{}) *gomock.Call
IsValidCookie indicates an expected call of IsValidCookie.
type MockPost ¶
type MockPost struct {
// contains filtered or unexported fields
}
MockPost is a mock of Post interface.
func NewMockPost ¶
func NewMockPost(ctrl *gomock.Controller) *MockPost
NewMockPost creates a new mock instance.
func (*MockPost) EXPECT ¶
func (m *MockPost) EXPECT() *MockPostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPost) FindAll ¶
func (m *MockPost) FindAll(offset, pageSize int, condition string, params []interface{}, sortCondition string) ([]*entity.Post, error)
FindAll mocks base method.
func (*MockPost) FindByPermalink ¶
FindByPermalink mocks base method.
type MockPostMockRecorder ¶
type MockPostMockRecorder struct {
// contains filtered or unexported fields
}
MockPostMockRecorder is the mock recorder for MockPost.
func (*MockPostMockRecorder) Count ¶
func (mr *MockPostMockRecorder) Count(condition, params interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockPostMockRecorder) Create ¶
func (mr *MockPostMockRecorder) Create(post interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPostMockRecorder) Delete ¶
func (mr *MockPostMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPostMockRecorder) FindAll ¶
func (mr *MockPostMockRecorder) FindAll(offset, pageSize, condition, params, sortCondition interface{}) *gomock.Call
FindAll indicates an expected call of FindAll.
func (*MockPostMockRecorder) FindByID ¶
func (mr *MockPostMockRecorder) FindByID(id interface{}) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*MockPostMockRecorder) FindByPermalink ¶
func (mr *MockPostMockRecorder) FindByPermalink(permalink interface{}) *gomock.Call
FindByPermalink indicates an expected call of FindByPermalink.
func (*MockPostMockRecorder) Update ¶
func (mr *MockPostMockRecorder) Update(post interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockPostsTags ¶
type MockPostsTags struct {
// contains filtered or unexported fields
}
MockPostsTags is a mock of PostsTags interface.
func NewMockPostsTags ¶
func NewMockPostsTags(ctrl *gomock.Controller) *MockPostsTags
NewMockPostsTags creates a new mock instance.
func (*MockPostsTags) Delete ¶
func (m *MockPostsTags) Delete(id string) error
Delete mocks base method.
func (*MockPostsTags) DeleteByPostID ¶
func (m *MockPostsTags) DeleteByPostID(postID string) error
DeleteByPostID mocks base method.
func (*MockPostsTags) EXPECT ¶
func (m *MockPostsTags) EXPECT() *MockPostsTagsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostsTags) FindByPostIDAndTagName ¶
func (m *MockPostsTags) FindByPostIDAndTagName(postID, tagName string) (*entity.PostsTags, error)
FindByPostIDAndTagName mocks base method.
type MockPostsTagsMockRecorder ¶
type MockPostsTagsMockRecorder struct {
// contains filtered or unexported fields
}
MockPostsTagsMockRecorder is the mock recorder for MockPostsTags.
func (*MockPostsTagsMockRecorder) Delete ¶
func (mr *MockPostsTagsMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPostsTagsMockRecorder) DeleteByPostID ¶
func (mr *MockPostsTagsMockRecorder) DeleteByPostID(postID interface{}) *gomock.Call
DeleteByPostID indicates an expected call of DeleteByPostID.
func (*MockPostsTagsMockRecorder) FindByPostIDAndTagName ¶
func (mr *MockPostsTagsMockRecorder) FindByPostIDAndTagName(postID, tagName interface{}) *gomock.Call
FindByPostIDAndTagName indicates an expected call of FindByPostIDAndTagName.
func (*MockPostsTagsMockRecorder) Store ¶
func (mr *MockPostsTagsMockRecorder) Store(postsTags interface{}) *gomock.Call
Store indicates an expected call of Store.
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.
func (*MockTag) FindAll ¶
func (m *MockTag) FindAll(offset, pageSize int, condition string, params []interface{}) ([]*entity.Tag, error)
FindAll mocks base method.
func (*MockTag) FindByName ¶
FindByName mocks base method.
type MockTagMockRecorder ¶
type MockTagMockRecorder struct {
// contains filtered or unexported fields
}
MockTagMockRecorder is the mock recorder for MockTag.
func (*MockTagMockRecorder) Count ¶
func (mr *MockTagMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*MockTagMockRecorder) Delete ¶
func (mr *MockTagMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTagMockRecorder) FindAll ¶
func (mr *MockTagMockRecorder) FindAll(offset, pageSize, condition, params interface{}) *gomock.Call
FindAll indicates an expected call of FindAll.
func (*MockTagMockRecorder) FindByID ¶
func (mr *MockTagMockRecorder) FindByID(id interface{}) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*MockTagMockRecorder) FindByName ¶
func (mr *MockTagMockRecorder) FindByName(name interface{}) *gomock.Call
FindByName indicates an expected call of FindByName.
func (*MockTagMockRecorder) Store ¶
func (mr *MockTagMockRecorder) Store(tag interface{}) *gomock.Call
Store indicates an expected call of Store.