daomocks

package
v0.0.0-...-0ca6d7b Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package daomocks is a generated GoMock package.

Package daomocks is a generated GoMock package.

Package daomocks is a generated GoMock package.

Package daomocks is a generated GoMock package.

Package daomocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockArticleAuthorDAO

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

MockArticleAuthorDAO is a mock of ArticleAuthorDAO interface.

func NewMockArticleAuthorDAO

func NewMockArticleAuthorDAO(ctrl *gomock.Controller) *MockArticleAuthorDAO

NewMockArticleAuthorDAO creates a new mock instance.

func (*MockArticleAuthorDAO) Create

func (m *MockArticleAuthorDAO) Create(ctx context.Context, article dao.Article) (int64, error)

Create mocks base method.

func (*MockArticleAuthorDAO) EXPECT

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

func (*MockArticleAuthorDAO) UpdateByID

func (m *MockArticleAuthorDAO) UpdateByID(ctx context.Context, article dao.Article) error

UpdateByID mocks base method.

type MockArticleAuthorDAOMockRecorder

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

MockArticleAuthorDAOMockRecorder is the mock recorder for MockArticleAuthorDAO.

func (*MockArticleAuthorDAOMockRecorder) Create

func (mr *MockArticleAuthorDAOMockRecorder) Create(ctx, article any) *gomock.Call

Create indicates an expected call of Create.

func (*MockArticleAuthorDAOMockRecorder) UpdateByID

func (mr *MockArticleAuthorDAOMockRecorder) UpdateByID(ctx, article any) *gomock.Call

UpdateByID indicates an expected call of UpdateByID.

type MockArticleDAO

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

MockArticleDAO is a mock of ArticleDAO interface.

func NewMockArticleDAO

func NewMockArticleDAO(ctrl *gomock.Controller) *MockArticleDAO

NewMockArticleDAO creates a new mock instance.

func (*MockArticleDAO) EXPECT

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

func (*MockArticleDAO) GetByAuthor

func (m *MockArticleDAO) GetByAuthor(ctx context.Context, uid int64, offset, limit int) ([]dao.Article, error)

GetByAuthor mocks base method.

func (*MockArticleDAO) GetByID

func (m *MockArticleDAO) GetByID(ctx context.Context, id int64) (dao.Article, error)

GetByID mocks base method.

func (*MockArticleDAO) GetPubByID

func (m *MockArticleDAO) GetPubByID(ctx context.Context, id int64) (dao.PublishedArticle, error)

GetPubByID mocks base method.

func (*MockArticleDAO) Insert

func (m *MockArticleDAO) Insert(ctx context.Context, article dao.Article) (int64, error)

Insert mocks base method.

func (*MockArticleDAO) Sync

func (m *MockArticleDAO) Sync(ctx context.Context, article dao.Article) (int64, error)

Sync mocks base method.

func (*MockArticleDAO) Transaction

func (m *MockArticleDAO) Transaction(ctx context.Context, fn func(context.Context, any) (any, error)) (any, error)

Transaction mocks base method.

func (*MockArticleDAO) UpdateByID

func (m *MockArticleDAO) UpdateByID(ctx context.Context, article dao.Article) error

UpdateByID mocks base method.

func (*MockArticleDAO) UpdateStatusByID

func (m *MockArticleDAO) UpdateStatusByID(ctx context.Context, model any, userID, articleID int64, status uint8) error

UpdateStatusByID mocks base method.

func (*MockArticleDAO) Upsert

func (m *MockArticleDAO) Upsert(ctx context.Context, article dao.PublishedArticle) error

Upsert mocks base method.

type MockArticleDAOMockRecorder

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

MockArticleDAOMockRecorder is the mock recorder for MockArticleDAO.

func (*MockArticleDAOMockRecorder) GetByAuthor

func (mr *MockArticleDAOMockRecorder) GetByAuthor(ctx, uid, offset, limit any) *gomock.Call

GetByAuthor indicates an expected call of GetByAuthor.

func (*MockArticleDAOMockRecorder) GetByID

func (mr *MockArticleDAOMockRecorder) GetByID(ctx, id any) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockArticleDAOMockRecorder) GetPubByID

func (mr *MockArticleDAOMockRecorder) GetPubByID(ctx, id any) *gomock.Call

GetPubByID indicates an expected call of GetPubByID.

func (*MockArticleDAOMockRecorder) Insert

func (mr *MockArticleDAOMockRecorder) Insert(ctx, article any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockArticleDAOMockRecorder) Sync

func (mr *MockArticleDAOMockRecorder) Sync(ctx, article any) *gomock.Call

Sync indicates an expected call of Sync.

func (*MockArticleDAOMockRecorder) Transaction

func (mr *MockArticleDAOMockRecorder) Transaction(ctx, fn any) *gomock.Call

Transaction indicates an expected call of Transaction.

func (*MockArticleDAOMockRecorder) UpdateByID

func (mr *MockArticleDAOMockRecorder) UpdateByID(ctx, article any) *gomock.Call

UpdateByID indicates an expected call of UpdateByID.

func (*MockArticleDAOMockRecorder) UpdateStatusByID

func (mr *MockArticleDAOMockRecorder) UpdateStatusByID(ctx, model, userID, articleID, status any) *gomock.Call

UpdateStatusByID indicates an expected call of UpdateStatusByID.

func (*MockArticleDAOMockRecorder) Upsert

func (mr *MockArticleDAOMockRecorder) Upsert(ctx, article any) *gomock.Call

Upsert indicates an expected call of Upsert.

type MockArticleReaderDAO

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

MockArticleReaderDAO is a mock of ArticleReaderDAO interface.

func NewMockArticleReaderDAO

func NewMockArticleReaderDAO(ctrl *gomock.Controller) *MockArticleReaderDAO

NewMockArticleReaderDAO creates a new mock instance.

func (*MockArticleReaderDAO) EXPECT

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

func (*MockArticleReaderDAO) Upsert

func (m *MockArticleReaderDAO) Upsert(ctx context.Context, article dao.Article) error

Upsert mocks base method.

func (*MockArticleReaderDAO) UpsertV2

func (m *MockArticleReaderDAO) UpsertV2(ctx context.Context, article dao.PublishedArticle) error

UpsertV2 mocks base method.

type MockArticleReaderDAOMockRecorder

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

MockArticleReaderDAOMockRecorder is the mock recorder for MockArticleReaderDAO.

func (*MockArticleReaderDAOMockRecorder) Upsert

func (mr *MockArticleReaderDAOMockRecorder) Upsert(ctx, article any) *gomock.Call

Upsert indicates an expected call of Upsert.

func (*MockArticleReaderDAOMockRecorder) UpsertV2

func (mr *MockArticleReaderDAOMockRecorder) UpsertV2(ctx, article any) *gomock.Call

UpsertV2 indicates an expected call of UpsertV2.

type MockAsyncSMSDAO

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

MockAsyncSMSDAO is a mock of AsyncSMSDAO interface.

func NewMockAsyncSMSDAO

func NewMockAsyncSMSDAO(ctrl *gomock.Controller) *MockAsyncSMSDAO

NewMockAsyncSMSDAO creates a new mock instance.

func (*MockAsyncSMSDAO) Delete

func (m *MockAsyncSMSDAO) Delete(ctx context.Context, smsInfo dao.SMSInfo) error

Delete mocks base method.

func (*MockAsyncSMSDAO) EXPECT

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

func (*MockAsyncSMSDAO) GetFirst

func (m *MockAsyncSMSDAO) GetFirst(ctx context.Context) (dao.SMSInfo, error)

GetFirst mocks base method.

func (*MockAsyncSMSDAO) Insert

func (m *MockAsyncSMSDAO) Insert(ctx context.Context, s dao.SMSInfo) error

Insert mocks base method.

func (*MockAsyncSMSDAO) Update

func (m *MockAsyncSMSDAO) Update(ctx context.Context, s dao.SMSInfo) error

Update mocks base method.

type MockAsyncSMSDAOMockRecorder

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

MockAsyncSMSDAOMockRecorder is the mock recorder for MockAsyncSMSDAO.

func (*MockAsyncSMSDAOMockRecorder) Delete

func (mr *MockAsyncSMSDAOMockRecorder) Delete(ctx, smsInfo any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockAsyncSMSDAOMockRecorder) GetFirst

func (mr *MockAsyncSMSDAOMockRecorder) GetFirst(ctx any) *gomock.Call

GetFirst indicates an expected call of GetFirst.

func (*MockAsyncSMSDAOMockRecorder) Insert

func (mr *MockAsyncSMSDAOMockRecorder) Insert(ctx, s any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockAsyncSMSDAOMockRecorder) Update

func (mr *MockAsyncSMSDAOMockRecorder) Update(ctx, s any) *gomock.Call

Update indicates an expected call of Update.

type MockUserDAO

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

MockUserDAO is a mock of UserDAO interface.

func NewMockUserDAO

func NewMockUserDAO(ctrl *gomock.Controller) *MockUserDAO

NewMockUserDAO creates a new mock instance.

func (*MockUserDAO) EXPECT

func (m *MockUserDAO) EXPECT() *MockUserDAOMockRecorder

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

func (*MockUserDAO) FindByEmail

func (m *MockUserDAO) FindByEmail(ctx context.Context, email string) (dao.User, error)

FindByEmail mocks base method.

func (*MockUserDAO) FindByID

func (m *MockUserDAO) FindByID(ctx context.Context, id int64) (dao.User, error)

FindByID mocks base method.

func (*MockUserDAO) FindByPhone

func (m *MockUserDAO) FindByPhone(ctx context.Context, phone string) (dao.User, error)

FindByPhone mocks base method.

func (*MockUserDAO) Insert

func (m *MockUserDAO) Insert(ctx context.Context, u dao.User) (dao.User, error)

Insert mocks base method.

func (*MockUserDAO) UpdateProfile

func (m *MockUserDAO) UpdateProfile(ctx context.Context, user dao.User) error

UpdateProfile mocks base method.

type MockUserDAOMockRecorder

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

MockUserDAOMockRecorder is the mock recorder for MockUserDAO.

func (*MockUserDAOMockRecorder) FindByEmail

func (mr *MockUserDAOMockRecorder) FindByEmail(ctx, email any) *gomock.Call

FindByEmail indicates an expected call of FindByEmail.

func (*MockUserDAOMockRecorder) FindByID

func (mr *MockUserDAOMockRecorder) FindByID(ctx, id any) *gomock.Call

FindByID indicates an expected call of FindByID.

func (*MockUserDAOMockRecorder) FindByPhone

func (mr *MockUserDAOMockRecorder) FindByPhone(ctx, phone any) *gomock.Call

FindByPhone indicates an expected call of FindByPhone.

func (*MockUserDAOMockRecorder) Insert

func (mr *MockUserDAOMockRecorder) Insert(ctx, u any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockUserDAOMockRecorder) UpdateProfile

func (mr *MockUserDAOMockRecorder) UpdateProfile(ctx, user any) *gomock.Call

UpdateProfile indicates an expected call of UpdateProfile.

Jump to

Keyboard shortcuts

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