mock

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

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuth

type MockAuth struct {
	// contains filtered or unexported fields
}

MockAuth is a mock of Auth interface.

func NewMockAuth

func NewMockAuth(ctrl *gomock.Controller) *MockAuth

NewMockAuth creates a new mock instance.

func (*MockAuth) Delete

func (m *MockAuth) Delete(ctx context.Context, userID uuid.UUID) error

Delete mocks base method.

func (*MockAuth) EXPECT

func (m *MockAuth) EXPECT() *MockAuthMockRecorder

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

func (*MockAuth) FindUsersByName

func (m *MockAuth) FindUsersByName(ctx context.Context, name string, pq *utils.PaginationQuery) (*entity.UsersList, error)

FindUsersByName mocks base method.

func (*MockAuth) GetUserByID

func (m *MockAuth) GetUserByID(ctx context.Context, userID uuid.UUID) (*entity.User, error)

GetUserByID mocks base method.

func (*MockAuth) GetUsers

func (m *MockAuth) GetUsers(ctx context.Context, pq *utils.PaginationQuery) (*entity.UsersList, error)

GetUsers mocks base method.

func (*MockAuth) Login

func (m *MockAuth) Login(ctx context.Context, user *entity.User) (*entity.UserWithToken, error)

Login mocks base method.

func (*MockAuth) Register

func (m *MockAuth) Register(ctx context.Context, user *entity.User) (*entity.UserWithToken, error)

Register mocks base method.

func (*MockAuth) Update

func (m *MockAuth) Update(ctx context.Context, user *entity.User) (*entity.User, error)

Update mocks base method.

type MockAuthMockRecorder

type MockAuthMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthMockRecorder is the mock recorder for MockAuth.

func (*MockAuthMockRecorder) Delete

func (mr *MockAuthMockRecorder) Delete(ctx, userID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockAuthMockRecorder) FindUsersByName

func (mr *MockAuthMockRecorder) FindUsersByName(ctx, name, pq interface{}) *gomock.Call

FindUsersByName indicates an expected call of FindUsersByName.

func (*MockAuthMockRecorder) GetUserByID

func (mr *MockAuthMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockAuthMockRecorder) GetUsers

func (mr *MockAuthMockRecorder) GetUsers(ctx, pq interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers.

func (*MockAuthMockRecorder) Login

func (mr *MockAuthMockRecorder) Login(ctx, user interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockAuthMockRecorder) Register

func (mr *MockAuthMockRecorder) Register(ctx, user interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockAuthMockRecorder) Update

func (mr *MockAuthMockRecorder) Update(ctx, user interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockComments

type MockComments struct {
	// contains filtered or unexported fields
}

MockComments is a mock of Comments interface.

func NewMockComments

func NewMockComments(ctrl *gomock.Controller) *MockComments

NewMockComments creates a new mock instance.

func (*MockComments) Create

func (m *MockComments) Create(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)

Create mocks base method.

func (*MockComments) Delete

func (m *MockComments) Delete(ctx context.Context, commentID uuid.UUID) error

Delete mocks base method.

func (*MockComments) EXPECT

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

func (*MockComments) GetAllByNewsID

func (m *MockComments) GetAllByNewsID(ctx context.Context, newsID uuid.UUID, pq *utils.PaginationQuery) (*entity.CommentsList, error)

GetAllByNewsID mocks base method.

func (*MockComments) GetByID

func (m *MockComments) GetByID(ctx context.Context, commentID uuid.UUID) (*entity.CommentBase, error)

GetByID mocks base method.

func (*MockComments) Update

func (m *MockComments) Update(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)

Update mocks base method.

type MockCommentsMockRecorder

type MockCommentsMockRecorder struct {
	// contains filtered or unexported fields
}

MockCommentsMockRecorder is the mock recorder for MockComments.

func (*MockCommentsMockRecorder) Create

func (mr *MockCommentsMockRecorder) Create(ctx, comments interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockCommentsMockRecorder) Delete

func (mr *MockCommentsMockRecorder) Delete(ctx, commentID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCommentsMockRecorder) GetAllByNewsID

func (mr *MockCommentsMockRecorder) GetAllByNewsID(ctx, newsID, pq interface{}) *gomock.Call

GetAllByNewsID indicates an expected call of GetAllByNewsID.

func (*MockCommentsMockRecorder) GetByID

func (mr *MockCommentsMockRecorder) GetByID(ctx, commentID interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockCommentsMockRecorder) Update

func (mr *MockCommentsMockRecorder) Update(ctx, comments interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockNews

type MockNews struct {
	// contains filtered or unexported fields
}

MockNews is a mock of News interface.

func NewMockNews

func NewMockNews(ctrl *gomock.Controller) *MockNews

NewMockNews creates a new mock instance.

func (*MockNews) Create

func (m *MockNews) Create(ctx context.Context, news *entity.News) (*entity.News, error)

Create mocks base method.

func (*MockNews) Delete

func (m *MockNews) Delete(ctx context.Context, newsID uuid.UUID) error

Delete mocks base method.

func (*MockNews) EXPECT

func (m *MockNews) EXPECT() *MockNewsMockRecorder

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

func (*MockNews) GetNews

func (m *MockNews) GetNews(ctx context.Context, pq *utils.PaginationQuery) (*entity.NewsList, error)

GetNews mocks base method.

func (*MockNews) GetNewsByID

func (m *MockNews) GetNewsByID(ctx context.Context, newsID uuid.UUID) (*entity.NewsBase, error)

GetNewsByID mocks base method.

func (*MockNews) SearchNews

func (m *MockNews) SearchNews(ctx context.Context, title string, pq *utils.PaginationQuery) (*entity.NewsList, error)

SearchNews mocks base method.

func (*MockNews) Update

func (m *MockNews) Update(ctx context.Context, news *entity.News) (*entity.News, error)

Update mocks base method.

type MockNewsMockRecorder

type MockNewsMockRecorder struct {
	// contains filtered or unexported fields
}

MockNewsMockRecorder is the mock recorder for MockNews.

func (*MockNewsMockRecorder) Create

func (mr *MockNewsMockRecorder) Create(ctx, news interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockNewsMockRecorder) Delete

func (mr *MockNewsMockRecorder) Delete(ctx, newsID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockNewsMockRecorder) GetNews

func (mr *MockNewsMockRecorder) GetNews(ctx, pq interface{}) *gomock.Call

GetNews indicates an expected call of GetNews.

func (*MockNewsMockRecorder) GetNewsByID

func (mr *MockNewsMockRecorder) GetNewsByID(ctx, newsID interface{}) *gomock.Call

GetNewsByID indicates an expected call of GetNewsByID.

func (*MockNewsMockRecorder) SearchNews

func (mr *MockNewsMockRecorder) SearchNews(ctx, title, pq interface{}) *gomock.Call

SearchNews indicates an expected call of SearchNews.

func (*MockNewsMockRecorder) Update

func (mr *MockNewsMockRecorder) Update(ctx, news interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockSession

type MockSession struct {
	// contains filtered or unexported fields
}

MockSession is a mock of Session interface.

func NewMockSession

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance.

func (*MockSession) CreateSession

func (m *MockSession) CreateSession(ctx context.Context, session *entity.Session, expire int) (string, error)

CreateSession mocks base method.

func (*MockSession) DeleteSessionByID

func (m *MockSession) DeleteSessionByID(ctx context.Context, sessionID string) error

DeleteSessionByID mocks base method.

func (*MockSession) EXPECT

func (m *MockSession) EXPECT() *MockSessionMockRecorder

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

func (*MockSession) GetSessionByID

func (m *MockSession) GetSessionByID(ctx context.Context, sessionID string) (*entity.Session, error)

GetSessionByID mocks base method.

type MockSessionMockRecorder

type MockSessionMockRecorder struct {
	// contains filtered or unexported fields
}

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) CreateSession

func (mr *MockSessionMockRecorder) CreateSession(ctx, session, expire interface{}) *gomock.Call

CreateSession indicates an expected call of CreateSession.

func (*MockSessionMockRecorder) DeleteSessionByID

func (mr *MockSessionMockRecorder) DeleteSessionByID(ctx, sessionID interface{}) *gomock.Call

DeleteSessionByID indicates an expected call of DeleteSessionByID.

func (*MockSessionMockRecorder) GetSessionByID

func (mr *MockSessionMockRecorder) GetSessionByID(ctx, sessionID interface{}) *gomock.Call

GetSessionByID indicates an expected call of GetSessionByID.

Jump to

Keyboard shortcuts

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