mock_database

package
v0.0.0-...-8ad1ab3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_database is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGormDB

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

MockGormDB is a mock of GormDB interface.

func NewMockGormDB

func NewMockGormDB(ctrl *gomock.Controller) *MockGormDB

NewMockGormDB creates a new mock instance.

func (*MockGormDB) AddError

func (m *MockGormDB) AddError(arg0 error) error

AddError mocks base method.

func (*MockGormDB) Assign

func (m *MockGormDB) Assign(arg0 ...interface{}) database.GormDB

Assign mocks base method.

func (*MockGormDB) Association

func (m *MockGormDB) Association(arg0 string) *gorm.Association

Association mocks base method.

func (*MockGormDB) Attrs

func (m *MockGormDB) Attrs(arg0 ...interface{}) database.GormDB

Attrs mocks base method.

func (*MockGormDB) AutoMigrate

func (m *MockGormDB) AutoMigrate(arg0 ...interface{}) error

AutoMigrate mocks base method.

func (*MockGormDB) Begin

func (m *MockGormDB) Begin(arg0 ...*sql.TxOptions) database.GormDB

Begin mocks base method.

func (*MockGormDB) Clauses

func (m *MockGormDB) Clauses(arg0 ...clause.Expression) database.GormDB

Clauses mocks base method.

func (*MockGormDB) Commit

func (m *MockGormDB) Commit() database.GormDB

Commit mocks base method.

func (*MockGormDB) Connection

func (m *MockGormDB) Connection(arg0 func(database.GormDB) error) error

Connection mocks base method.

func (*MockGormDB) Count

func (m *MockGormDB) Count(arg0 *int64) database.GormDB

Count mocks base method.

func (*MockGormDB) Create

func (m *MockGormDB) Create(arg0 interface{}) database.GormDB

Create mocks base method.

func (*MockGormDB) CreateInBatches

func (m *MockGormDB) CreateInBatches(arg0 interface{}, arg1 int) database.GormDB

CreateInBatches mocks base method.

func (*MockGormDB) DB

func (m *MockGormDB) DB() (*sql.DB, error)

DB mocks base method.

func (*MockGormDB) Debug

func (m *MockGormDB) Debug() database.GormDB

Debug mocks base method.

func (*MockGormDB) Delete

func (m *MockGormDB) Delete(arg0 interface{}, arg1 ...interface{}) database.GormDB

Delete mocks base method.

func (*MockGormDB) Distinct

func (m *MockGormDB) Distinct(arg0 ...interface{}) database.GormDB

Distinct mocks base method.

func (*MockGormDB) EXPECT

func (m *MockGormDB) EXPECT() *MockGormDBMockRecorder

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

func (*MockGormDB) Exec

func (m *MockGormDB) Exec(arg0 string, arg1 ...interface{}) database.GormDB

Exec mocks base method.

func (*MockGormDB) Find

func (m *MockGormDB) Find(arg0 interface{}, arg1 ...interface{}) database.GormDB

Find mocks base method.

func (*MockGormDB) FindInBatches

func (m *MockGormDB) FindInBatches(arg0 interface{}, arg1 int, arg2 func(database.GormDB, int) error) database.GormDB

FindInBatches mocks base method.

func (*MockGormDB) First

func (m *MockGormDB) First(arg0 interface{}, arg1 ...interface{}) database.GormDB

First mocks base method.

func (*MockGormDB) FirstOrCreate

func (m *MockGormDB) FirstOrCreate(arg0 interface{}, arg1 ...interface{}) database.GormDB

FirstOrCreate mocks base method.

func (*MockGormDB) FirstOrInit

func (m *MockGormDB) FirstOrInit(arg0 interface{}, arg1 ...interface{}) database.GormDB

FirstOrInit mocks base method.

func (*MockGormDB) Get

func (m *MockGormDB) Get(arg0 string) (interface{}, bool)

Get mocks base method.

func (*MockGormDB) GetConfig

func (m *MockGormDB) GetConfig() *gorm.Config

GetConfig mocks base method.

func (*MockGormDB) GetError

func (m *MockGormDB) GetError() error

GetError mocks base method.

func (*MockGormDB) GetRowsAffected

func (m *MockGormDB) GetRowsAffected() int64

GetRowsAffected mocks base method.

func (*MockGormDB) GetStatement

func (m *MockGormDB) GetStatement() *gorm.Statement

GetStatement mocks base method.

func (*MockGormDB) Group

func (m *MockGormDB) Group(arg0 string) database.GormDB

Group mocks base method.

func (*MockGormDB) Having

func (m *MockGormDB) Having(arg0 interface{}, arg1 ...interface{}) database.GormDB

Having mocks base method.

func (*MockGormDB) InnerJoins

func (m *MockGormDB) InnerJoins(arg0 string, arg1 ...interface{}) database.GormDB

InnerJoins mocks base method.

func (*MockGormDB) InstanceGet

func (m *MockGormDB) InstanceGet(arg0 string) (interface{}, bool)

InstanceGet mocks base method.

func (*MockGormDB) InstanceSet

func (m *MockGormDB) InstanceSet(arg0 string, arg1 interface{}) database.GormDB

InstanceSet mocks base method.

func (*MockGormDB) Joins

func (m *MockGormDB) Joins(arg0 string, arg1 ...interface{}) database.GormDB

Joins mocks base method.

func (*MockGormDB) Last

func (m *MockGormDB) Last(arg0 interface{}, arg1 ...interface{}) database.GormDB

Last mocks base method.

func (*MockGormDB) Limit

func (m *MockGormDB) Limit(arg0 int) database.GormDB

Limit mocks base method.

func (*MockGormDB) Migrator

func (m *MockGormDB) Migrator() gorm.Migrator

Migrator mocks base method.

func (*MockGormDB) Model

func (m *MockGormDB) Model(arg0 interface{}) database.GormDB

Model mocks base method.

func (*MockGormDB) Not

func (m *MockGormDB) Not(arg0 interface{}, arg1 ...interface{}) database.GormDB

Not mocks base method.

func (*MockGormDB) Offset

func (m *MockGormDB) Offset(arg0 int) database.GormDB

Offset mocks base method.

func (*MockGormDB) Omit

func (m *MockGormDB) Omit(arg0 ...string) database.GormDB

Omit mocks base method.

func (*MockGormDB) Or

func (m *MockGormDB) Or(arg0 interface{}, arg1 ...interface{}) database.GormDB

Or mocks base method.

func (*MockGormDB) Order

func (m *MockGormDB) Order(arg0 interface{}) database.GormDB

Order mocks base method.

func (*MockGormDB) Pluck

func (m *MockGormDB) Pluck(arg0 string, arg1 interface{}) database.GormDB

Pluck mocks base method.

func (*MockGormDB) Preload

func (m *MockGormDB) Preload(arg0 string, arg1 ...interface{}) database.GormDB

Preload mocks base method.

func (*MockGormDB) Raw

func (m *MockGormDB) Raw(arg0 string, arg1 ...interface{}) database.GormDB

Raw mocks base method.

func (*MockGormDB) Rollback

func (m *MockGormDB) Rollback() database.GormDB

Rollback mocks base method.

func (*MockGormDB) RollbackTo

func (m *MockGormDB) RollbackTo(arg0 string) database.GormDB

RollbackTo mocks base method.

func (*MockGormDB) Row

func (m *MockGormDB) Row() *sql.Row

Row mocks base method.

func (*MockGormDB) Rows

func (m *MockGormDB) Rows() (*sql.Rows, error)

Rows mocks base method.

func (*MockGormDB) Save

func (m *MockGormDB) Save(arg0 interface{}) database.GormDB

Save mocks base method.

func (*MockGormDB) SavePoint

func (m *MockGormDB) SavePoint(arg0 string) database.GormDB

SavePoint mocks base method.

func (*MockGormDB) Scan

func (m *MockGormDB) Scan(arg0 interface{}) database.GormDB

Scan mocks base method.

func (*MockGormDB) ScanRows

func (m *MockGormDB) ScanRows(arg0 *sql.Rows, arg1 interface{}) error

ScanRows mocks base method.

func (*MockGormDB) Scopes

func (m *MockGormDB) Scopes(arg0 ...func(database.GormDB) database.GormDB) database.GormDB

Scopes mocks base method.

func (*MockGormDB) Select

func (m *MockGormDB) Select(arg0 interface{}, arg1 ...interface{}) database.GormDB

Select mocks base method.

func (*MockGormDB) Session

func (m *MockGormDB) Session(arg0 *gorm.Session) database.GormDB

Session mocks base method.

func (*MockGormDB) Set

func (m *MockGormDB) Set(arg0 string, arg1 interface{}) database.GormDB

Set mocks base method.

func (*MockGormDB) SetupJoinTable

func (m *MockGormDB) SetupJoinTable(arg0 interface{}, arg1 string, arg2 interface{}) error

SetupJoinTable mocks base method.

func (*MockGormDB) Table

func (m *MockGormDB) Table(arg0 string, arg1 ...interface{}) database.GormDB

Table mocks base method.

func (*MockGormDB) Take

func (m *MockGormDB) Take(arg0 interface{}, arg1 ...interface{}) database.GormDB

Take mocks base method.

func (*MockGormDB) ToSQL

func (m *MockGormDB) ToSQL(arg0 func(database.GormDB) database.GormDB) string

ToSQL mocks base method.

func (*MockGormDB) Transaction

func (m *MockGormDB) Transaction(arg0 func(database.GormDB) error, arg1 ...*sql.TxOptions) error

Transaction mocks base method.

func (*MockGormDB) Unscoped

func (m *MockGormDB) Unscoped() database.GormDB

Unscoped mocks base method.

func (*MockGormDB) Update

func (m *MockGormDB) Update(arg0 string, arg1 interface{}) database.GormDB

Update mocks base method.

func (*MockGormDB) UpdateColumn

func (m *MockGormDB) UpdateColumn(arg0 string, arg1 interface{}) database.GormDB

UpdateColumn mocks base method.

func (*MockGormDB) UpdateColumns

func (m *MockGormDB) UpdateColumns(arg0 interface{}) database.GormDB

UpdateColumns mocks base method.

func (*MockGormDB) Updates

func (m *MockGormDB) Updates(arg0 interface{}) database.GormDB

Updates mocks base method.

func (*MockGormDB) Use

func (m *MockGormDB) Use(arg0 gorm.Plugin) error

Use mocks base method.

func (*MockGormDB) Where

func (m *MockGormDB) Where(arg0 interface{}, arg1 ...interface{}) database.GormDB

Where mocks base method.

func (*MockGormDB) WithContext

func (m *MockGormDB) WithContext(arg0 context.Context) database.GormDB

WithContext mocks base method.

type MockGormDBMockRecorder

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

MockGormDBMockRecorder is the mock recorder for MockGormDB.

func (*MockGormDBMockRecorder) AddError

func (mr *MockGormDBMockRecorder) AddError(arg0 interface{}) *gomock.Call

AddError indicates an expected call of AddError.

func (*MockGormDBMockRecorder) Assign

func (mr *MockGormDBMockRecorder) Assign(arg0 ...interface{}) *gomock.Call

Assign indicates an expected call of Assign.

func (*MockGormDBMockRecorder) Association

func (mr *MockGormDBMockRecorder) Association(arg0 interface{}) *gomock.Call

Association indicates an expected call of Association.

func (*MockGormDBMockRecorder) Attrs

func (mr *MockGormDBMockRecorder) Attrs(arg0 ...interface{}) *gomock.Call

Attrs indicates an expected call of Attrs.

func (*MockGormDBMockRecorder) AutoMigrate

func (mr *MockGormDBMockRecorder) AutoMigrate(arg0 ...interface{}) *gomock.Call

AutoMigrate indicates an expected call of AutoMigrate.

func (*MockGormDBMockRecorder) Begin

func (mr *MockGormDBMockRecorder) Begin(arg0 ...interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockGormDBMockRecorder) Clauses

func (mr *MockGormDBMockRecorder) Clauses(arg0 ...interface{}) *gomock.Call

Clauses indicates an expected call of Clauses.

func (*MockGormDBMockRecorder) Commit

func (mr *MockGormDBMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockGormDBMockRecorder) Connection

func (mr *MockGormDBMockRecorder) Connection(arg0 interface{}) *gomock.Call

Connection indicates an expected call of Connection.

func (*MockGormDBMockRecorder) Count

func (mr *MockGormDBMockRecorder) Count(arg0 interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockGormDBMockRecorder) Create

func (mr *MockGormDBMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockGormDBMockRecorder) CreateInBatches

func (mr *MockGormDBMockRecorder) CreateInBatches(arg0, arg1 interface{}) *gomock.Call

CreateInBatches indicates an expected call of CreateInBatches.

func (*MockGormDBMockRecorder) DB

DB indicates an expected call of DB.

func (*MockGormDBMockRecorder) Debug

func (mr *MockGormDBMockRecorder) Debug() *gomock.Call

Debug indicates an expected call of Debug.

func (*MockGormDBMockRecorder) Delete

func (mr *MockGormDBMockRecorder) Delete(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockGormDBMockRecorder) Distinct

func (mr *MockGormDBMockRecorder) Distinct(arg0 ...interface{}) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockGormDBMockRecorder) Exec

func (mr *MockGormDBMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockGormDBMockRecorder) Find

func (mr *MockGormDBMockRecorder) Find(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockGormDBMockRecorder) FindInBatches

func (mr *MockGormDBMockRecorder) FindInBatches(arg0, arg1, arg2 interface{}) *gomock.Call

FindInBatches indicates an expected call of FindInBatches.

func (*MockGormDBMockRecorder) First

func (mr *MockGormDBMockRecorder) First(arg0 interface{}, arg1 ...interface{}) *gomock.Call

First indicates an expected call of First.

func (*MockGormDBMockRecorder) FirstOrCreate

func (mr *MockGormDBMockRecorder) FirstOrCreate(arg0 interface{}, arg1 ...interface{}) *gomock.Call

FirstOrCreate indicates an expected call of FirstOrCreate.

func (*MockGormDBMockRecorder) FirstOrInit

func (mr *MockGormDBMockRecorder) FirstOrInit(arg0 interface{}, arg1 ...interface{}) *gomock.Call

FirstOrInit indicates an expected call of FirstOrInit.

func (*MockGormDBMockRecorder) Get

func (mr *MockGormDBMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockGormDBMockRecorder) GetConfig

func (mr *MockGormDBMockRecorder) GetConfig() *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockGormDBMockRecorder) GetError

func (mr *MockGormDBMockRecorder) GetError() *gomock.Call

GetError indicates an expected call of GetError.

func (*MockGormDBMockRecorder) GetRowsAffected

func (mr *MockGormDBMockRecorder) GetRowsAffected() *gomock.Call

GetRowsAffected indicates an expected call of GetRowsAffected.

func (*MockGormDBMockRecorder) GetStatement

func (mr *MockGormDBMockRecorder) GetStatement() *gomock.Call

GetStatement indicates an expected call of GetStatement.

func (*MockGormDBMockRecorder) Group

func (mr *MockGormDBMockRecorder) Group(arg0 interface{}) *gomock.Call

Group indicates an expected call of Group.

func (*MockGormDBMockRecorder) Having

func (mr *MockGormDBMockRecorder) Having(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Having indicates an expected call of Having.

func (*MockGormDBMockRecorder) InnerJoins

func (mr *MockGormDBMockRecorder) InnerJoins(arg0 interface{}, arg1 ...interface{}) *gomock.Call

InnerJoins indicates an expected call of InnerJoins.

func (*MockGormDBMockRecorder) InstanceGet

func (mr *MockGormDBMockRecorder) InstanceGet(arg0 interface{}) *gomock.Call

InstanceGet indicates an expected call of InstanceGet.

func (*MockGormDBMockRecorder) InstanceSet

func (mr *MockGormDBMockRecorder) InstanceSet(arg0, arg1 interface{}) *gomock.Call

InstanceSet indicates an expected call of InstanceSet.

func (*MockGormDBMockRecorder) Joins

func (mr *MockGormDBMockRecorder) Joins(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Joins indicates an expected call of Joins.

func (*MockGormDBMockRecorder) Last

func (mr *MockGormDBMockRecorder) Last(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Last indicates an expected call of Last.

func (*MockGormDBMockRecorder) Limit

func (mr *MockGormDBMockRecorder) Limit(arg0 interface{}) *gomock.Call

Limit indicates an expected call of Limit.

func (*MockGormDBMockRecorder) Migrator

func (mr *MockGormDBMockRecorder) Migrator() *gomock.Call

Migrator indicates an expected call of Migrator.

func (*MockGormDBMockRecorder) Model

func (mr *MockGormDBMockRecorder) Model(arg0 interface{}) *gomock.Call

Model indicates an expected call of Model.

func (*MockGormDBMockRecorder) Not

func (mr *MockGormDBMockRecorder) Not(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Not indicates an expected call of Not.

func (*MockGormDBMockRecorder) Offset

func (mr *MockGormDBMockRecorder) Offset(arg0 interface{}) *gomock.Call

Offset indicates an expected call of Offset.

func (*MockGormDBMockRecorder) Omit

func (mr *MockGormDBMockRecorder) Omit(arg0 ...interface{}) *gomock.Call

Omit indicates an expected call of Omit.

func (*MockGormDBMockRecorder) Or

func (mr *MockGormDBMockRecorder) Or(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Or indicates an expected call of Or.

func (*MockGormDBMockRecorder) Order

func (mr *MockGormDBMockRecorder) Order(arg0 interface{}) *gomock.Call

Order indicates an expected call of Order.

func (*MockGormDBMockRecorder) Pluck

func (mr *MockGormDBMockRecorder) Pluck(arg0, arg1 interface{}) *gomock.Call

Pluck indicates an expected call of Pluck.

func (*MockGormDBMockRecorder) Preload

func (mr *MockGormDBMockRecorder) Preload(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Preload indicates an expected call of Preload.

func (*MockGormDBMockRecorder) Raw

func (mr *MockGormDBMockRecorder) Raw(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Raw indicates an expected call of Raw.

func (*MockGormDBMockRecorder) Rollback

func (mr *MockGormDBMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockGormDBMockRecorder) RollbackTo

func (mr *MockGormDBMockRecorder) RollbackTo(arg0 interface{}) *gomock.Call

RollbackTo indicates an expected call of RollbackTo.

func (*MockGormDBMockRecorder) Row

func (mr *MockGormDBMockRecorder) Row() *gomock.Call

Row indicates an expected call of Row.

func (*MockGormDBMockRecorder) Rows

func (mr *MockGormDBMockRecorder) Rows() *gomock.Call

Rows indicates an expected call of Rows.

func (*MockGormDBMockRecorder) Save

func (mr *MockGormDBMockRecorder) Save(arg0 interface{}) *gomock.Call

Save indicates an expected call of Save.

func (*MockGormDBMockRecorder) SavePoint

func (mr *MockGormDBMockRecorder) SavePoint(arg0 interface{}) *gomock.Call

SavePoint indicates an expected call of SavePoint.

func (*MockGormDBMockRecorder) Scan

func (mr *MockGormDBMockRecorder) Scan(arg0 interface{}) *gomock.Call

Scan indicates an expected call of Scan.

func (*MockGormDBMockRecorder) ScanRows

func (mr *MockGormDBMockRecorder) ScanRows(arg0, arg1 interface{}) *gomock.Call

ScanRows indicates an expected call of ScanRows.

func (*MockGormDBMockRecorder) Scopes

func (mr *MockGormDBMockRecorder) Scopes(arg0 ...interface{}) *gomock.Call

Scopes indicates an expected call of Scopes.

func (*MockGormDBMockRecorder) Select

func (mr *MockGormDBMockRecorder) Select(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Select indicates an expected call of Select.

func (*MockGormDBMockRecorder) Session

func (mr *MockGormDBMockRecorder) Session(arg0 interface{}) *gomock.Call

Session indicates an expected call of Session.

func (*MockGormDBMockRecorder) Set

func (mr *MockGormDBMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockGormDBMockRecorder) SetupJoinTable

func (mr *MockGormDBMockRecorder) SetupJoinTable(arg0, arg1, arg2 interface{}) *gomock.Call

SetupJoinTable indicates an expected call of SetupJoinTable.

func (*MockGormDBMockRecorder) Table

func (mr *MockGormDBMockRecorder) Table(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Table indicates an expected call of Table.

func (*MockGormDBMockRecorder) Take

func (mr *MockGormDBMockRecorder) Take(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Take indicates an expected call of Take.

func (*MockGormDBMockRecorder) ToSQL

func (mr *MockGormDBMockRecorder) ToSQL(arg0 interface{}) *gomock.Call

ToSQL indicates an expected call of ToSQL.

func (*MockGormDBMockRecorder) Transaction

func (mr *MockGormDBMockRecorder) Transaction(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Transaction indicates an expected call of Transaction.

func (*MockGormDBMockRecorder) Unscoped

func (mr *MockGormDBMockRecorder) Unscoped() *gomock.Call

Unscoped indicates an expected call of Unscoped.

func (*MockGormDBMockRecorder) Update

func (mr *MockGormDBMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockGormDBMockRecorder) UpdateColumn

func (mr *MockGormDBMockRecorder) UpdateColumn(arg0, arg1 interface{}) *gomock.Call

UpdateColumn indicates an expected call of UpdateColumn.

func (*MockGormDBMockRecorder) UpdateColumns

func (mr *MockGormDBMockRecorder) UpdateColumns(arg0 interface{}) *gomock.Call

UpdateColumns indicates an expected call of UpdateColumns.

func (*MockGormDBMockRecorder) Updates

func (mr *MockGormDBMockRecorder) Updates(arg0 interface{}) *gomock.Call

Updates indicates an expected call of Updates.

func (*MockGormDBMockRecorder) Use

func (mr *MockGormDBMockRecorder) Use(arg0 interface{}) *gomock.Call

Use indicates an expected call of Use.

func (*MockGormDBMockRecorder) Where

func (mr *MockGormDBMockRecorder) Where(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Where indicates an expected call of Where.

func (*MockGormDBMockRecorder) WithContext

func (mr *MockGormDBMockRecorder) WithContext(arg0 interface{}) *gomock.Call

WithContext indicates an expected call of WithContext.

Jump to

Keyboard shortcuts

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