Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAbstractCollection
- func (m *MockAbstractCollection) DeleteOne(ctx context.Context, filter any, opts ...*options.DeleteOptions) (int64, error)
- func (m *MockAbstractCollection) EXPECT() *MockAbstractCollectionMockRecorder
- func (m *MockAbstractCollection) Find(ctx context.Context, filter any, opts ...*options.FindOptions) (storage.AbstractCursor, error)
- func (m *MockAbstractCollection) FindOne(ctx context.Context, filter any, opts ...*options.FindOneOptions) storage.AbstractSingleResult
- func (m *MockAbstractCollection) InsertOne(ctx context.Context, document any, opts ...*options.InsertOneOptions) (any, error)
- func (m *MockAbstractCollection) UpdateOne(ctx context.Context, filter, update any, opts ...*options.UpdateOptions) (int64, error)
- type MockAbstractCollectionMockRecorder
- func (mr *MockAbstractCollectionMockRecorder) DeleteOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAbstractCollectionMockRecorder) Find(ctx, filter interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAbstractCollectionMockRecorder) FindOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAbstractCollectionMockRecorder) InsertOne(ctx, document interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAbstractCollectionMockRecorder) UpdateOne(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call
- type MockAbstractCursor
- type MockAbstractCursorMockRecorder
- type MockAbstractSingleResult
- type MockAbstractSingleResultMockRecorder
- type MockPostAPI
- func (m *MockPostAPI) AddComment(ctx context.Context, postID users.ID, comment posts.Comment) (*posts.Post, error)
- func (m *MockPostAPI) CreatePost(ctx context.Context, postPayload posts.PostPayload) (*posts.Post, error)
- func (m *MockPostAPI) DeleteComment(ctx context.Context, postID, commentID users.ID) (*posts.Post, error)
- func (m *MockPostAPI) DeletePost(ctx context.Context, postID users.ID) error
- func (m *MockPostAPI) Downvote(ctx context.Context, postID users.ID) (*posts.Post, error)
- func (m *MockPostAPI) EXPECT() *MockPostAPIMockRecorder
- func (m *MockPostAPI) GetAllPosts(ctx context.Context) ([]*posts.Post, error)
- func (m *MockPostAPI) GetPostByID(ctx context.Context, postID users.ID) (*posts.Post, error)
- func (m *MockPostAPI) GetPostsByCategory(ctx context.Context, postCategory posts.PostCategory) ([]*posts.Post, error)
- func (m *MockPostAPI) GetPostsByUser(ctx context.Context, userLogin users.Username) ([]*posts.Post, error)
- func (m *MockPostAPI) Unvote(ctx context.Context, postID users.ID) (*posts.Post, error)
- func (m *MockPostAPI) Upvote(ctx context.Context, postID users.ID) (*posts.Post, error)
- type MockPostAPIMockRecorder
- func (mr *MockPostAPIMockRecorder) AddComment(ctx, postID, comment interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) CreatePost(ctx, postPayload interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) DeleteComment(ctx, postID, commentID interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) DeletePost(ctx, postID interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) Downvote(ctx, postID interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) GetAllPosts(ctx interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) GetPostByID(ctx, postID interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) GetPostsByCategory(ctx, postCategory interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) GetPostsByUser(ctx, userLogin interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) Unvote(ctx, postID interface{}) *gomock.Call
- func (mr *MockPostAPIMockRecorder) Upvote(ctx, postID interface{}) *gomock.Call
- type MockSessionAPI
- type MockSessionAPIMockRecorder
- type MockSessionManager
- func (m *MockSessionManager) CheckSession(ctx context.Context, session *jwt.Session) (*jwt.TokenPayload, error)
- func (m *MockSessionManager) CreateSession(ctx context.Context, session *jwt.Session, payload *jwt.TokenPayload) (*jwt.Session, error)
- func (m *MockSessionManager) EXPECT() *MockSessionManagerMockRecorder
- type MockSessionManagerMockRecorder
- type MockUserAPI
- type MockUserAPIMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAbstractCollection ¶
type MockAbstractCollection struct {
// contains filtered or unexported fields
}
MockAbstractCollection is a mock of AbstractCollection interface.
func NewMockAbstractCollection ¶
func NewMockAbstractCollection(ctrl *gomock.Controller) *MockAbstractCollection
NewMockAbstractCollection creates a new mock instance.
func (*MockAbstractCollection) DeleteOne ¶
func (m *MockAbstractCollection) DeleteOne(ctx context.Context, filter any, opts ...*options.DeleteOptions) (int64, error)
DeleteOne mocks base method.
func (*MockAbstractCollection) EXPECT ¶
func (m *MockAbstractCollection) EXPECT() *MockAbstractCollectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAbstractCollection) Find ¶
func (m *MockAbstractCollection) Find(ctx context.Context, filter any, opts ...*options.FindOptions) (storage.AbstractCursor, error)
Find mocks base method.
func (*MockAbstractCollection) FindOne ¶
func (m *MockAbstractCollection) FindOne(ctx context.Context, filter any, opts ...*options.FindOneOptions) storage.AbstractSingleResult
FindOne mocks base method.
func (*MockAbstractCollection) InsertOne ¶
func (m *MockAbstractCollection) InsertOne(ctx context.Context, document any, opts ...*options.InsertOneOptions) (any, error)
InsertOne mocks base method.
func (*MockAbstractCollection) UpdateOne ¶
func (m *MockAbstractCollection) UpdateOne(ctx context.Context, filter, update any, opts ...*options.UpdateOptions) (int64, error)
UpdateOne mocks base method.
type MockAbstractCollectionMockRecorder ¶
type MockAbstractCollectionMockRecorder struct {
// contains filtered or unexported fields
}
MockAbstractCollectionMockRecorder is the mock recorder for MockAbstractCollection.
func (*MockAbstractCollectionMockRecorder) DeleteOne ¶
func (mr *MockAbstractCollectionMockRecorder) DeleteOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call
DeleteOne indicates an expected call of DeleteOne.
func (*MockAbstractCollectionMockRecorder) Find ¶
func (mr *MockAbstractCollectionMockRecorder) Find(ctx, filter interface{}, opts ...interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockAbstractCollectionMockRecorder) FindOne ¶
func (mr *MockAbstractCollectionMockRecorder) FindOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockAbstractCollectionMockRecorder) InsertOne ¶
func (mr *MockAbstractCollectionMockRecorder) InsertOne(ctx, document interface{}, opts ...interface{}) *gomock.Call
InsertOne indicates an expected call of InsertOne.
func (*MockAbstractCollectionMockRecorder) UpdateOne ¶
func (mr *MockAbstractCollectionMockRecorder) UpdateOne(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call
UpdateOne indicates an expected call of UpdateOne.
type MockAbstractCursor ¶
type MockAbstractCursor struct {
// contains filtered or unexported fields
}
MockAbstractCursor is a mock of AbstractCursor interface.
func NewMockAbstractCursor ¶
func NewMockAbstractCursor(ctrl *gomock.Controller) *MockAbstractCursor
NewMockAbstractCursor creates a new mock instance.
func (*MockAbstractCursor) All ¶
func (m *MockAbstractCursor) All(ctx context.Context, result any) error
All mocks base method.
func (*MockAbstractCursor) EXPECT ¶
func (m *MockAbstractCursor) EXPECT() *MockAbstractCursorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAbstractCursorMockRecorder ¶
type MockAbstractCursorMockRecorder struct {
// contains filtered or unexported fields
}
MockAbstractCursorMockRecorder is the mock recorder for MockAbstractCursor.
func (*MockAbstractCursorMockRecorder) All ¶
func (mr *MockAbstractCursorMockRecorder) All(ctx, result interface{}) *gomock.Call
All indicates an expected call of All.
type MockAbstractSingleResult ¶
type MockAbstractSingleResult struct {
// contains filtered or unexported fields
}
MockAbstractSingleResult is a mock of AbstractSingleResult interface.
func NewMockAbstractSingleResult ¶
func NewMockAbstractSingleResult(ctrl *gomock.Controller) *MockAbstractSingleResult
NewMockAbstractSingleResult creates a new mock instance.
func (*MockAbstractSingleResult) Decode ¶
func (m *MockAbstractSingleResult) Decode(v any) error
Decode mocks base method.
func (*MockAbstractSingleResult) EXPECT ¶
func (m *MockAbstractSingleResult) EXPECT() *MockAbstractSingleResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAbstractSingleResult) Err ¶
func (m *MockAbstractSingleResult) Err() error
Err mocks base method.
type MockAbstractSingleResultMockRecorder ¶
type MockAbstractSingleResultMockRecorder struct {
// contains filtered or unexported fields
}
MockAbstractSingleResultMockRecorder is the mock recorder for MockAbstractSingleResult.
func (*MockAbstractSingleResultMockRecorder) Decode ¶
func (mr *MockAbstractSingleResultMockRecorder) Decode(v interface{}) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockAbstractSingleResultMockRecorder) Err ¶
func (mr *MockAbstractSingleResultMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
type MockPostAPI ¶
type MockPostAPI struct {
// contains filtered or unexported fields
}
MockPostAPI is a mock of PostAPI interface.
func NewMockPostAPI ¶
func NewMockPostAPI(ctrl *gomock.Controller) *MockPostAPI
NewMockPostAPI creates a new mock instance.
func (*MockPostAPI) AddComment ¶
func (m *MockPostAPI) AddComment(ctx context.Context, postID users.ID, comment posts.Comment) (*posts.Post, error)
AddComment mocks base method.
func (*MockPostAPI) CreatePost ¶
func (m *MockPostAPI) CreatePost(ctx context.Context, postPayload posts.PostPayload) (*posts.Post, error)
CreatePost mocks base method.
func (*MockPostAPI) DeleteComment ¶
func (m *MockPostAPI) DeleteComment(ctx context.Context, postID, commentID users.ID) (*posts.Post, error)
DeleteComment mocks base method.
func (*MockPostAPI) DeletePost ¶
DeletePost mocks base method.
func (*MockPostAPI) EXPECT ¶
func (m *MockPostAPI) EXPECT() *MockPostAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostAPI) GetAllPosts ¶
GetAllPosts mocks base method.
func (*MockPostAPI) GetPostByID ¶
GetPostByID mocks base method.
func (*MockPostAPI) GetPostsByCategory ¶
func (m *MockPostAPI) GetPostsByCategory(ctx context.Context, postCategory posts.PostCategory) ([]*posts.Post, error)
GetPostsByCategory mocks base method.
func (*MockPostAPI) GetPostsByUser ¶
func (m *MockPostAPI) GetPostsByUser(ctx context.Context, userLogin users.Username) ([]*posts.Post, error)
GetPostsByUser mocks base method.
type MockPostAPIMockRecorder ¶
type MockPostAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockPostAPIMockRecorder is the mock recorder for MockPostAPI.
func (*MockPostAPIMockRecorder) AddComment ¶
func (mr *MockPostAPIMockRecorder) AddComment(ctx, postID, comment interface{}) *gomock.Call
AddComment indicates an expected call of AddComment.
func (*MockPostAPIMockRecorder) CreatePost ¶
func (mr *MockPostAPIMockRecorder) CreatePost(ctx, postPayload interface{}) *gomock.Call
CreatePost indicates an expected call of CreatePost.
func (*MockPostAPIMockRecorder) DeleteComment ¶
func (mr *MockPostAPIMockRecorder) DeleteComment(ctx, postID, commentID interface{}) *gomock.Call
DeleteComment indicates an expected call of DeleteComment.
func (*MockPostAPIMockRecorder) DeletePost ¶
func (mr *MockPostAPIMockRecorder) DeletePost(ctx, postID interface{}) *gomock.Call
DeletePost indicates an expected call of DeletePost.
func (*MockPostAPIMockRecorder) Downvote ¶
func (mr *MockPostAPIMockRecorder) Downvote(ctx, postID interface{}) *gomock.Call
Downvote indicates an expected call of Downvote.
func (*MockPostAPIMockRecorder) GetAllPosts ¶
func (mr *MockPostAPIMockRecorder) GetAllPosts(ctx interface{}) *gomock.Call
GetAllPosts indicates an expected call of GetAllPosts.
func (*MockPostAPIMockRecorder) GetPostByID ¶
func (mr *MockPostAPIMockRecorder) GetPostByID(ctx, postID interface{}) *gomock.Call
GetPostByID indicates an expected call of GetPostByID.
func (*MockPostAPIMockRecorder) GetPostsByCategory ¶
func (mr *MockPostAPIMockRecorder) GetPostsByCategory(ctx, postCategory interface{}) *gomock.Call
GetPostsByCategory indicates an expected call of GetPostsByCategory.
func (*MockPostAPIMockRecorder) GetPostsByUser ¶
func (mr *MockPostAPIMockRecorder) GetPostsByUser(ctx, userLogin interface{}) *gomock.Call
GetPostsByUser indicates an expected call of GetPostsByUser.
func (*MockPostAPIMockRecorder) Unvote ¶
func (mr *MockPostAPIMockRecorder) Unvote(ctx, postID interface{}) *gomock.Call
Unvote indicates an expected call of Unvote.
func (*MockPostAPIMockRecorder) Upvote ¶
func (mr *MockPostAPIMockRecorder) Upvote(ctx, postID interface{}) *gomock.Call
Upvote indicates an expected call of Upvote.
type MockSessionAPI ¶
type MockSessionAPI struct {
// contains filtered or unexported fields
}
MockSessionAPI is a mock of SessionAPI interface.
func NewMockSessionAPI ¶
func NewMockSessionAPI(ctrl *gomock.Controller) *MockSessionAPI
NewMockSessionAPI creates a new mock instance.
func (*MockSessionAPI) EXPECT ¶
func (m *MockSessionAPI) EXPECT() *MockSessionAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionAPI) Verify ¶
func (m *MockSessionAPI) Verify(ctx context.Context, session *jwt.Session) (*jwt.TokenPayload, error)
Verify mocks base method.
type MockSessionAPIMockRecorder ¶
type MockSessionAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionAPIMockRecorder is the mock recorder for MockSessionAPI.
func (*MockSessionAPIMockRecorder) New ¶
func (mr *MockSessionAPIMockRecorder) New(ctx interface{}) *gomock.Call
New indicates an expected call of New.
func (*MockSessionAPIMockRecorder) Verify ¶
func (mr *MockSessionAPIMockRecorder) Verify(ctx, session interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockSessionManager ¶
type MockSessionManager struct {
// contains filtered or unexported fields
}
MockSessionManager is a mock of SessionManager interface.
func NewMockSessionManager ¶
func NewMockSessionManager(ctrl *gomock.Controller) *MockSessionManager
NewMockSessionManager creates a new mock instance.
func (*MockSessionManager) CheckSession ¶
func (m *MockSessionManager) CheckSession(ctx context.Context, session *jwt.Session) (*jwt.TokenPayload, error)
CheckSession mocks base method.
func (*MockSessionManager) CreateSession ¶
func (m *MockSessionManager) CreateSession(ctx context.Context, session *jwt.Session, payload *jwt.TokenPayload) (*jwt.Session, error)
CreateSession mocks base method.
func (*MockSessionManager) EXPECT ¶
func (m *MockSessionManager) EXPECT() *MockSessionManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSessionManagerMockRecorder ¶
type MockSessionManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionManagerMockRecorder is the mock recorder for MockSessionManager.
func (*MockSessionManagerMockRecorder) CheckSession ¶
func (mr *MockSessionManagerMockRecorder) CheckSession(ctx, session interface{}) *gomock.Call
CheckSession indicates an expected call of CheckSession.
func (*MockSessionManagerMockRecorder) CreateSession ¶
func (mr *MockSessionManagerMockRecorder) CreateSession(ctx, session, payload interface{}) *gomock.Call
CreateSession indicates an expected call of CreateSession.
type MockUserAPI ¶
type MockUserAPI struct {
// contains filtered or unexported fields
}
MockUserAPI is a mock of UserAPI interface.
func NewMockUserAPI ¶
func NewMockUserAPI(ctrl *gomock.Controller) *MockUserAPI
NewMockUserAPI creates a new mock instance.
func (*MockUserAPI) Authorize ¶
func (m *MockUserAPI) Authorize(ctx context.Context, authData users.AuthUserInfo) (*jwt.TokenPayload, error)
Authorize mocks base method.
func (*MockUserAPI) EXPECT ¶
func (m *MockUserAPI) EXPECT() *MockUserAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserAPI) Register ¶
func (m *MockUserAPI) Register(ctx context.Context, authData users.AuthUserInfo) (*jwt.TokenPayload, error)
Register mocks base method.
type MockUserAPIMockRecorder ¶
type MockUserAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockUserAPIMockRecorder is the mock recorder for MockUserAPI.
func (*MockUserAPIMockRecorder) Authorize ¶
func (mr *MockUserAPIMockRecorder) Authorize(ctx, authData interface{}) *gomock.Call
Authorize indicates an expected call of Authorize.
func (*MockUserAPIMockRecorder) Register ¶
func (mr *MockUserAPIMockRecorder) Register(ctx, authData interface{}) *gomock.Call
Register indicates an expected call of Register.