mocks

package
v0.0.0-...-3c2e532 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 8 Imported by: 0

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAbstractCollection) Find

Find mocks base method.

func (*MockAbstractCollection) FindOne

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAbstractSingleResult) Err

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

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

func (m *MockPostAPI) DeletePost(ctx context.Context, postID users.ID) error

DeletePost mocks base method.

func (*MockPostAPI) Downvote

func (m *MockPostAPI) Downvote(ctx context.Context, postID users.ID) (*posts.Post, error)

Downvote 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

func (m *MockPostAPI) GetAllPosts(ctx context.Context) ([]*posts.Post, error)

GetAllPosts mocks base method.

func (*MockPostAPI) GetPostByID

func (m *MockPostAPI) GetPostByID(ctx context.Context, postID users.ID) (*posts.Post, error)

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.

func (*MockPostAPI) Unvote

func (m *MockPostAPI) Unvote(ctx context.Context, postID users.ID) (*posts.Post, error)

Unvote mocks base method.

func (*MockPostAPI) Upvote

func (m *MockPostAPI) Upvote(ctx context.Context, postID users.ID) (*posts.Post, error)

Upvote 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSessionAPI) New

func (m *MockSessionAPI) New(ctx context.Context) (*jwt.Session, error)

New mocks base method.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL