Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddError(arg0 error) error
- func (m *MockInterface) AddForeignKey(arg0, arg1, arg2, arg3 string) jorm.Interface
- func (m *MockInterface) AddIndex(arg0 string, arg1 ...string) jorm.Interface
- func (m *MockInterface) AddUniqueIndex(arg0 string, arg1 ...string) jorm.Interface
- func (m *MockInterface) Assign(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) Association(arg0 string) *gorm.Association
- func (m *MockInterface) Attrs(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) AutoMigrate(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) Begin() jorm.Interface
- func (m *MockInterface) BlockGlobalUpdate(arg0 bool) jorm.Interface
- func (m *MockInterface) Callback() *gorm.Callback
- func (m *MockInterface) Close() error
- func (m *MockInterface) Commit() jorm.Interface
- func (m *MockInterface) CommonDB() gorm.SQLCommon
- func (m *MockInterface) Count(arg0 interface{}) jorm.Interface
- func (m *MockInterface) Create(arg0 interface{}) jorm.Interface
- func (m *MockInterface) CreateTable(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) DB() *sql.DB
- func (m *MockInterface) Debug() jorm.Interface
- func (m *MockInterface) Delete(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Dialect() gorm.Dialect
- func (m *MockInterface) DropColumn(arg0 string) jorm.Interface
- func (m *MockInterface) DropTable(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) DropTableIfExists(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Error() error
- func (m *MockInterface) Exec(arg0 string, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Find(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) First(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) FirstOrCreate(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) FirstOrInit(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Get(arg0 string) (interface{}, bool)
- func (m *MockInterface) GetErrors() []error
- func (m *MockInterface) GetGormDB() *gorm.DB
- func (m *MockInterface) Group(arg0 string) jorm.Interface
- func (m *MockInterface) HasBlockGlobalUpdate() bool
- func (m *MockInterface) HasTable(arg0 interface{}) bool
- func (m *MockInterface) Having(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) InstantSet(arg0 string, arg1 interface{}) jorm.Interface
- func (m *MockInterface) Joins(arg0 string, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Last(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Limit(arg0 interface{}) jorm.Interface
- func (m *MockInterface) LogMode(arg0 bool) jorm.Interface
- func (m *MockInterface) Model(arg0 interface{}) jorm.Interface
- func (m *MockInterface) ModifyColumn(arg0, arg1 string) jorm.Interface
- func (m *MockInterface) New() jorm.Interface
- func (m *MockInterface) NewRecord(arg0 interface{}) bool
- func (m *MockInterface) Not(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Offset(arg0 interface{}) jorm.Interface
- func (m *MockInterface) Omit(arg0 ...string) jorm.Interface
- func (m *MockInterface) Or(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Order(arg0 interface{}, arg1 ...bool) jorm.Interface
- func (m *MockInterface) Pluck(arg0 string, arg1 interface{}) jorm.Interface
- func (m *MockInterface) Preload(arg0 string, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Raw(arg0 string, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) RecordNotFound() bool
- func (m *MockInterface) Related(arg0 interface{}, arg1 ...string) jorm.Interface
- func (m *MockInterface) RemoveForeignKey(arg0, arg1 string) jorm.Interface
- func (m *MockInterface) RemoveIndex(arg0 string) jorm.Interface
- func (m *MockInterface) Rollback() jorm.Interface
- func (m *MockInterface) Row() jorm.Row
- func (m *MockInterface) Rows() (jorm.Rows, error)
- func (m *MockInterface) RowsAffected() int64
- func (m *MockInterface) Save(arg0 interface{}) jorm.Interface
- func (m *MockInterface) Scan(arg0 interface{}) jorm.Interface
- func (m *MockInterface) ScanRows(arg0 *sql.Rows, arg1 interface{}) error
- func (m *MockInterface) Scopes(arg0 ...func(*gorm.DB) *gorm.DB) jorm.Interface
- func (m *MockInterface) Select(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Set(arg0 string, arg1 interface{}) jorm.Interface
- func (m *MockInterface) SetJoinTableHandler(arg0 interface{}, arg1 string, arg2 gorm.JoinTableHandlerInterface)
- func (m *MockInterface) SetLogger(arg0 mysql.Logger)
- func (m *MockInterface) SingularTable(arg0 bool)
- func (m *MockInterface) Table(arg0 string) jorm.Interface
- func (m *MockInterface) Take(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) Unscoped() jorm.Interface
- func (m *MockInterface) Update(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) UpdateColumn(arg0 ...interface{}) jorm.Interface
- func (m *MockInterface) UpdateColumns(arg0 interface{}) jorm.Interface
- func (m *MockInterface) Updates(arg0 interface{}, arg1 ...bool) jorm.Interface
- func (m *MockInterface) Value() interface{}
- func (m *MockInterface) Where(arg0 interface{}, arg1 ...interface{}) jorm.Interface
- func (m *MockInterface) WithContext(arg0 context.Context) jorm.Interface
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddError(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddForeignKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddIndex(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddUniqueIndex(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Assign(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Association(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Attrs(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AutoMigrate(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Begin() *gomock.Call
- func (mr *MockInterfaceMockRecorder) BlockGlobalUpdate(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Callback() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Close() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Commit() *gomock.Call
- func (mr *MockInterfaceMockRecorder) CommonDB() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Count(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateTable(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DB() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Debug() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Dialect() *gomock.Call
- func (mr *MockInterfaceMockRecorder) DropColumn(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DropTable(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DropTableIfExists(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Error() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Find(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) First(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) FirstOrCreate(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) FirstOrInit(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetErrors() *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetGormDB() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Group(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) HasBlockGlobalUpdate() *gomock.Call
- func (mr *MockInterfaceMockRecorder) HasTable(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Having(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) InstantSet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Joins(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Last(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Limit(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LogMode(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Model(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ModifyColumn(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) New() *gomock.Call
- func (mr *MockInterfaceMockRecorder) NewRecord(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Not(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Offset(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Omit(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Or(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Order(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Pluck(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Preload(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Raw(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RecordNotFound() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Related(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RemoveForeignKey(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RemoveIndex(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Rollback() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Row() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Rows() *gomock.Call
- func (mr *MockInterfaceMockRecorder) RowsAffected() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Save(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Scan(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ScanRows(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Scopes(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Select(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetJoinTableHandler(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetLogger(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SingularTable(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Table(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Take(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Unscoped() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateColumn(arg0 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateColumns(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Updates(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Value() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Where(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) WithContext(arg0 interface{}) *gomock.Call
- type MockRow
- type MockRowMockRecorder
- type MockRows
- func (m *MockRows) Close() error
- func (m *MockRows) ColumnTypes() ([]*sql.ColumnType, error)
- func (m *MockRows) Columns() ([]string, error)
- func (m *MockRows) EXPECT() *MockRowsMockRecorder
- func (m *MockRows) Err() error
- func (m *MockRows) Next() bool
- func (m *MockRows) NextResultSet() bool
- func (m *MockRows) Scan(arg0 ...interface{}) error
- type MockRowsMockRecorder
- func (mr *MockRowsMockRecorder) Close() *gomock.Call
- func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
- func (mr *MockRowsMockRecorder) Columns() *gomock.Call
- func (mr *MockRowsMockRecorder) Err() *gomock.Call
- func (mr *MockRowsMockRecorder) Next() *gomock.Call
- func (mr *MockRowsMockRecorder) NextResultSet() *gomock.Call
- func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance
func (*MockInterface) AddError ¶
func (m *MockInterface) AddError(arg0 error) error
AddError mocks base method
func (*MockInterface) AddForeignKey ¶
func (m *MockInterface) AddForeignKey(arg0, arg1, arg2, arg3 string) jorm.Interface
AddForeignKey mocks base method
func (*MockInterface) AddIndex ¶
func (m *MockInterface) AddIndex(arg0 string, arg1 ...string) jorm.Interface
AddIndex mocks base method
func (*MockInterface) AddUniqueIndex ¶
func (m *MockInterface) AddUniqueIndex(arg0 string, arg1 ...string) jorm.Interface
AddUniqueIndex mocks base method
func (*MockInterface) Assign ¶
func (m *MockInterface) Assign(arg0 ...interface{}) jorm.Interface
Assign mocks base method
func (*MockInterface) Association ¶
func (m *MockInterface) Association(arg0 string) *gorm.Association
Association mocks base method
func (*MockInterface) Attrs ¶
func (m *MockInterface) Attrs(arg0 ...interface{}) jorm.Interface
Attrs mocks base method
func (*MockInterface) AutoMigrate ¶
func (m *MockInterface) AutoMigrate(arg0 ...interface{}) jorm.Interface
AutoMigrate mocks base method
func (*MockInterface) Begin ¶
func (m *MockInterface) Begin() jorm.Interface
Begin mocks base method
func (*MockInterface) BlockGlobalUpdate ¶
func (m *MockInterface) BlockGlobalUpdate(arg0 bool) jorm.Interface
BlockGlobalUpdate mocks base method
func (*MockInterface) Callback ¶
func (m *MockInterface) Callback() *gorm.Callback
Callback mocks base method
func (*MockInterface) Commit ¶
func (m *MockInterface) Commit() jorm.Interface
Commit mocks base method
func (*MockInterface) CommonDB ¶
func (m *MockInterface) CommonDB() gorm.SQLCommon
CommonDB mocks base method
func (*MockInterface) Count ¶
func (m *MockInterface) Count(arg0 interface{}) jorm.Interface
Count mocks base method
func (*MockInterface) Create ¶
func (m *MockInterface) Create(arg0 interface{}) jorm.Interface
Create mocks base method
func (*MockInterface) CreateTable ¶
func (m *MockInterface) CreateTable(arg0 ...interface{}) jorm.Interface
CreateTable mocks base method
func (*MockInterface) Debug ¶
func (m *MockInterface) Debug() jorm.Interface
Debug mocks base method
func (*MockInterface) Delete ¶
func (m *MockInterface) Delete(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Delete mocks base method
func (*MockInterface) Dialect ¶
func (m *MockInterface) Dialect() gorm.Dialect
Dialect mocks base method
func (*MockInterface) DropColumn ¶
func (m *MockInterface) DropColumn(arg0 string) jorm.Interface
DropColumn mocks base method
func (*MockInterface) DropTable ¶
func (m *MockInterface) DropTable(arg0 ...interface{}) jorm.Interface
DropTable mocks base method
func (*MockInterface) DropTableIfExists ¶
func (m *MockInterface) DropTableIfExists(arg0 ...interface{}) jorm.Interface
DropTableIfExists mocks base method
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterface) Exec ¶
func (m *MockInterface) Exec(arg0 string, arg1 ...interface{}) jorm.Interface
Exec mocks base method
func (*MockInterface) Find ¶
func (m *MockInterface) Find(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Find mocks base method
func (*MockInterface) First ¶
func (m *MockInterface) First(arg0 interface{}, arg1 ...interface{}) jorm.Interface
First mocks base method
func (*MockInterface) FirstOrCreate ¶
func (m *MockInterface) FirstOrCreate(arg0 interface{}, arg1 ...interface{}) jorm.Interface
FirstOrCreate mocks base method
func (*MockInterface) FirstOrInit ¶
func (m *MockInterface) FirstOrInit(arg0 interface{}, arg1 ...interface{}) jorm.Interface
FirstOrInit mocks base method
func (*MockInterface) Get ¶
func (m *MockInterface) Get(arg0 string) (interface{}, bool)
Get mocks base method
func (*MockInterface) GetErrors ¶
func (m *MockInterface) GetErrors() []error
GetErrors mocks base method
func (*MockInterface) GetGormDB ¶
func (m *MockInterface) GetGormDB() *gorm.DB
GetGormDB mocks base method
func (*MockInterface) Group ¶
func (m *MockInterface) Group(arg0 string) jorm.Interface
Group mocks base method
func (*MockInterface) HasBlockGlobalUpdate ¶
func (m *MockInterface) HasBlockGlobalUpdate() bool
HasBlockGlobalUpdate mocks base method
func (*MockInterface) HasTable ¶
func (m *MockInterface) HasTable(arg0 interface{}) bool
HasTable mocks base method
func (*MockInterface) Having ¶
func (m *MockInterface) Having(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Having mocks base method
func (*MockInterface) InstantSet ¶
func (m *MockInterface) InstantSet(arg0 string, arg1 interface{}) jorm.Interface
InstantSet mocks base method
func (*MockInterface) Joins ¶
func (m *MockInterface) Joins(arg0 string, arg1 ...interface{}) jorm.Interface
Joins mocks base method
func (*MockInterface) Last ¶
func (m *MockInterface) Last(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Last mocks base method
func (*MockInterface) Limit ¶
func (m *MockInterface) Limit(arg0 interface{}) jorm.Interface
Limit mocks base method
func (*MockInterface) LogMode ¶
func (m *MockInterface) LogMode(arg0 bool) jorm.Interface
LogMode mocks base method
func (*MockInterface) Model ¶
func (m *MockInterface) Model(arg0 interface{}) jorm.Interface
Model mocks base method
func (*MockInterface) ModifyColumn ¶
func (m *MockInterface) ModifyColumn(arg0, arg1 string) jorm.Interface
ModifyColumn mocks base method
func (*MockInterface) NewRecord ¶
func (m *MockInterface) NewRecord(arg0 interface{}) bool
NewRecord mocks base method
func (*MockInterface) Not ¶
func (m *MockInterface) Not(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Not mocks base method
func (*MockInterface) Offset ¶
func (m *MockInterface) Offset(arg0 interface{}) jorm.Interface
Offset mocks base method
func (*MockInterface) Omit ¶
func (m *MockInterface) Omit(arg0 ...string) jorm.Interface
Omit mocks base method
func (*MockInterface) Or ¶
func (m *MockInterface) Or(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Or mocks base method
func (*MockInterface) Order ¶
func (m *MockInterface) Order(arg0 interface{}, arg1 ...bool) jorm.Interface
Order mocks base method
func (*MockInterface) Pluck ¶
func (m *MockInterface) Pluck(arg0 string, arg1 interface{}) jorm.Interface
Pluck mocks base method
func (*MockInterface) Preload ¶
func (m *MockInterface) Preload(arg0 string, arg1 ...interface{}) jorm.Interface
Preload mocks base method
func (*MockInterface) Raw ¶
func (m *MockInterface) Raw(arg0 string, arg1 ...interface{}) jorm.Interface
Raw mocks base method
func (*MockInterface) RecordNotFound ¶
func (m *MockInterface) RecordNotFound() bool
RecordNotFound mocks base method
func (*MockInterface) Related ¶
func (m *MockInterface) Related(arg0 interface{}, arg1 ...string) jorm.Interface
Related mocks base method
func (*MockInterface) RemoveForeignKey ¶
func (m *MockInterface) RemoveForeignKey(arg0, arg1 string) jorm.Interface
RemoveForeignKey mocks base method
func (*MockInterface) RemoveIndex ¶
func (m *MockInterface) RemoveIndex(arg0 string) jorm.Interface
RemoveIndex mocks base method
func (*MockInterface) Rollback ¶
func (m *MockInterface) Rollback() jorm.Interface
Rollback mocks base method
func (*MockInterface) Rows ¶
func (m *MockInterface) Rows() (jorm.Rows, error)
Rows mocks base method
func (*MockInterface) RowsAffected ¶
func (m *MockInterface) RowsAffected() int64
RowsAffected mocks base method
func (*MockInterface) Save ¶
func (m *MockInterface) Save(arg0 interface{}) jorm.Interface
Save mocks base method
func (*MockInterface) Scan ¶
func (m *MockInterface) Scan(arg0 interface{}) jorm.Interface
Scan mocks base method
func (*MockInterface) ScanRows ¶
func (m *MockInterface) ScanRows(arg0 *sql.Rows, arg1 interface{}) error
ScanRows mocks base method
func (*MockInterface) Select ¶
func (m *MockInterface) Select(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Select mocks base method
func (*MockInterface) Set ¶
func (m *MockInterface) Set(arg0 string, arg1 interface{}) jorm.Interface
Set mocks base method
func (*MockInterface) SetJoinTableHandler ¶
func (m *MockInterface) SetJoinTableHandler(arg0 interface{}, arg1 string, arg2 gorm.JoinTableHandlerInterface)
SetJoinTableHandler mocks base method
func (*MockInterface) SetLogger ¶
func (m *MockInterface) SetLogger(arg0 mysql.Logger)
SetLogger mocks base method
func (*MockInterface) SingularTable ¶
func (m *MockInterface) SingularTable(arg0 bool)
SingularTable mocks base method
func (*MockInterface) Table ¶
func (m *MockInterface) Table(arg0 string) jorm.Interface
Table mocks base method
func (*MockInterface) Take ¶
func (m *MockInterface) Take(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Take mocks base method
func (*MockInterface) Unscoped ¶
func (m *MockInterface) Unscoped() jorm.Interface
Unscoped mocks base method
func (*MockInterface) Update ¶
func (m *MockInterface) Update(arg0 ...interface{}) jorm.Interface
Update mocks base method
func (*MockInterface) UpdateColumn ¶
func (m *MockInterface) UpdateColumn(arg0 ...interface{}) jorm.Interface
UpdateColumn mocks base method
func (*MockInterface) UpdateColumns ¶
func (m *MockInterface) UpdateColumns(arg0 interface{}) jorm.Interface
UpdateColumns mocks base method
func (*MockInterface) Updates ¶
func (m *MockInterface) Updates(arg0 interface{}, arg1 ...bool) jorm.Interface
Updates mocks base method
func (*MockInterface) Where ¶
func (m *MockInterface) Where(arg0 interface{}, arg1 ...interface{}) jorm.Interface
Where mocks base method
func (*MockInterface) WithContext ¶
func (m *MockInterface) WithContext(arg0 context.Context) jorm.Interface
WithContext mocks base method
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface
func (*MockInterfaceMockRecorder) AddError ¶
func (mr *MockInterfaceMockRecorder) AddError(arg0 interface{}) *gomock.Call
AddError indicates an expected call of AddError
func (*MockInterfaceMockRecorder) AddForeignKey ¶
func (mr *MockInterfaceMockRecorder) AddForeignKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
AddForeignKey indicates an expected call of AddForeignKey
func (*MockInterfaceMockRecorder) AddIndex ¶
func (mr *MockInterfaceMockRecorder) AddIndex(arg0 interface{}, arg1 ...interface{}) *gomock.Call
AddIndex indicates an expected call of AddIndex
func (*MockInterfaceMockRecorder) AddUniqueIndex ¶
func (mr *MockInterfaceMockRecorder) AddUniqueIndex(arg0 interface{}, arg1 ...interface{}) *gomock.Call
AddUniqueIndex indicates an expected call of AddUniqueIndex
func (*MockInterfaceMockRecorder) Assign ¶
func (mr *MockInterfaceMockRecorder) Assign(arg0 ...interface{}) *gomock.Call
Assign indicates an expected call of Assign
func (*MockInterfaceMockRecorder) Association ¶
func (mr *MockInterfaceMockRecorder) Association(arg0 interface{}) *gomock.Call
Association indicates an expected call of Association
func (*MockInterfaceMockRecorder) Attrs ¶
func (mr *MockInterfaceMockRecorder) Attrs(arg0 ...interface{}) *gomock.Call
Attrs indicates an expected call of Attrs
func (*MockInterfaceMockRecorder) AutoMigrate ¶
func (mr *MockInterfaceMockRecorder) AutoMigrate(arg0 ...interface{}) *gomock.Call
AutoMigrate indicates an expected call of AutoMigrate
func (*MockInterfaceMockRecorder) Begin ¶
func (mr *MockInterfaceMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockInterfaceMockRecorder) BlockGlobalUpdate ¶
func (mr *MockInterfaceMockRecorder) BlockGlobalUpdate(arg0 interface{}) *gomock.Call
BlockGlobalUpdate indicates an expected call of BlockGlobalUpdate
func (*MockInterfaceMockRecorder) Callback ¶
func (mr *MockInterfaceMockRecorder) Callback() *gomock.Call
Callback indicates an expected call of Callback
func (*MockInterfaceMockRecorder) Close ¶
func (mr *MockInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockInterfaceMockRecorder) Commit ¶
func (mr *MockInterfaceMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockInterfaceMockRecorder) CommonDB ¶
func (mr *MockInterfaceMockRecorder) CommonDB() *gomock.Call
CommonDB indicates an expected call of CommonDB
func (*MockInterfaceMockRecorder) Count ¶
func (mr *MockInterfaceMockRecorder) Count(arg0 interface{}) *gomock.Call
Count indicates an expected call of Count
func (*MockInterfaceMockRecorder) Create ¶
func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockInterfaceMockRecorder) CreateTable ¶
func (mr *MockInterfaceMockRecorder) CreateTable(arg0 ...interface{}) *gomock.Call
CreateTable indicates an expected call of CreateTable
func (*MockInterfaceMockRecorder) DB ¶
func (mr *MockInterfaceMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB
func (*MockInterfaceMockRecorder) Debug ¶
func (mr *MockInterfaceMockRecorder) Debug() *gomock.Call
Debug indicates an expected call of Debug
func (*MockInterfaceMockRecorder) Delete ¶
func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockInterfaceMockRecorder) Dialect ¶
func (mr *MockInterfaceMockRecorder) Dialect() *gomock.Call
Dialect indicates an expected call of Dialect
func (*MockInterfaceMockRecorder) DropColumn ¶
func (mr *MockInterfaceMockRecorder) DropColumn(arg0 interface{}) *gomock.Call
DropColumn indicates an expected call of DropColumn
func (*MockInterfaceMockRecorder) DropTable ¶
func (mr *MockInterfaceMockRecorder) DropTable(arg0 ...interface{}) *gomock.Call
DropTable indicates an expected call of DropTable
func (*MockInterfaceMockRecorder) DropTableIfExists ¶
func (mr *MockInterfaceMockRecorder) DropTableIfExists(arg0 ...interface{}) *gomock.Call
DropTableIfExists indicates an expected call of DropTableIfExists
func (*MockInterfaceMockRecorder) Error ¶
func (mr *MockInterfaceMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error
func (*MockInterfaceMockRecorder) Exec ¶
func (mr *MockInterfaceMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec
func (*MockInterfaceMockRecorder) Find ¶
func (mr *MockInterfaceMockRecorder) Find(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Find indicates an expected call of Find
func (*MockInterfaceMockRecorder) First ¶
func (mr *MockInterfaceMockRecorder) First(arg0 interface{}, arg1 ...interface{}) *gomock.Call
First indicates an expected call of First
func (*MockInterfaceMockRecorder) FirstOrCreate ¶
func (mr *MockInterfaceMockRecorder) FirstOrCreate(arg0 interface{}, arg1 ...interface{}) *gomock.Call
FirstOrCreate indicates an expected call of FirstOrCreate
func (*MockInterfaceMockRecorder) FirstOrInit ¶
func (mr *MockInterfaceMockRecorder) FirstOrInit(arg0 interface{}, arg1 ...interface{}) *gomock.Call
FirstOrInit indicates an expected call of FirstOrInit
func (*MockInterfaceMockRecorder) Get ¶
func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockInterfaceMockRecorder) GetErrors ¶
func (mr *MockInterfaceMockRecorder) GetErrors() *gomock.Call
GetErrors indicates an expected call of GetErrors
func (*MockInterfaceMockRecorder) GetGormDB ¶
func (mr *MockInterfaceMockRecorder) GetGormDB() *gomock.Call
GetGormDB indicates an expected call of GetGormDB
func (*MockInterfaceMockRecorder) Group ¶
func (mr *MockInterfaceMockRecorder) Group(arg0 interface{}) *gomock.Call
Group indicates an expected call of Group
func (*MockInterfaceMockRecorder) HasBlockGlobalUpdate ¶
func (mr *MockInterfaceMockRecorder) HasBlockGlobalUpdate() *gomock.Call
HasBlockGlobalUpdate indicates an expected call of HasBlockGlobalUpdate
func (*MockInterfaceMockRecorder) HasTable ¶
func (mr *MockInterfaceMockRecorder) HasTable(arg0 interface{}) *gomock.Call
HasTable indicates an expected call of HasTable
func (*MockInterfaceMockRecorder) Having ¶
func (mr *MockInterfaceMockRecorder) Having(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Having indicates an expected call of Having
func (*MockInterfaceMockRecorder) InstantSet ¶
func (mr *MockInterfaceMockRecorder) InstantSet(arg0, arg1 interface{}) *gomock.Call
InstantSet indicates an expected call of InstantSet
func (*MockInterfaceMockRecorder) Joins ¶
func (mr *MockInterfaceMockRecorder) Joins(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Joins indicates an expected call of Joins
func (*MockInterfaceMockRecorder) Last ¶
func (mr *MockInterfaceMockRecorder) Last(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Last indicates an expected call of Last
func (*MockInterfaceMockRecorder) Limit ¶
func (mr *MockInterfaceMockRecorder) Limit(arg0 interface{}) *gomock.Call
Limit indicates an expected call of Limit
func (*MockInterfaceMockRecorder) LogMode ¶
func (mr *MockInterfaceMockRecorder) LogMode(arg0 interface{}) *gomock.Call
LogMode indicates an expected call of LogMode
func (*MockInterfaceMockRecorder) Model ¶
func (mr *MockInterfaceMockRecorder) Model(arg0 interface{}) *gomock.Call
Model indicates an expected call of Model
func (*MockInterfaceMockRecorder) ModifyColumn ¶
func (mr *MockInterfaceMockRecorder) ModifyColumn(arg0, arg1 interface{}) *gomock.Call
ModifyColumn indicates an expected call of ModifyColumn
func (*MockInterfaceMockRecorder) New ¶
func (mr *MockInterfaceMockRecorder) New() *gomock.Call
New indicates an expected call of New
func (*MockInterfaceMockRecorder) NewRecord ¶
func (mr *MockInterfaceMockRecorder) NewRecord(arg0 interface{}) *gomock.Call
NewRecord indicates an expected call of NewRecord
func (*MockInterfaceMockRecorder) Not ¶
func (mr *MockInterfaceMockRecorder) Not(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Not indicates an expected call of Not
func (*MockInterfaceMockRecorder) Offset ¶
func (mr *MockInterfaceMockRecorder) Offset(arg0 interface{}) *gomock.Call
Offset indicates an expected call of Offset
func (*MockInterfaceMockRecorder) Omit ¶
func (mr *MockInterfaceMockRecorder) Omit(arg0 ...interface{}) *gomock.Call
Omit indicates an expected call of Omit
func (*MockInterfaceMockRecorder) Or ¶
func (mr *MockInterfaceMockRecorder) Or(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Or indicates an expected call of Or
func (*MockInterfaceMockRecorder) Order ¶
func (mr *MockInterfaceMockRecorder) Order(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Order indicates an expected call of Order
func (*MockInterfaceMockRecorder) Pluck ¶
func (mr *MockInterfaceMockRecorder) Pluck(arg0, arg1 interface{}) *gomock.Call
Pluck indicates an expected call of Pluck
func (*MockInterfaceMockRecorder) Preload ¶
func (mr *MockInterfaceMockRecorder) Preload(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Preload indicates an expected call of Preload
func (*MockInterfaceMockRecorder) Raw ¶
func (mr *MockInterfaceMockRecorder) Raw(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Raw indicates an expected call of Raw
func (*MockInterfaceMockRecorder) RecordNotFound ¶
func (mr *MockInterfaceMockRecorder) RecordNotFound() *gomock.Call
RecordNotFound indicates an expected call of RecordNotFound
func (*MockInterfaceMockRecorder) Related ¶
func (mr *MockInterfaceMockRecorder) Related(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Related indicates an expected call of Related
func (*MockInterfaceMockRecorder) RemoveForeignKey ¶
func (mr *MockInterfaceMockRecorder) RemoveForeignKey(arg0, arg1 interface{}) *gomock.Call
RemoveForeignKey indicates an expected call of RemoveForeignKey
func (*MockInterfaceMockRecorder) RemoveIndex ¶
func (mr *MockInterfaceMockRecorder) RemoveIndex(arg0 interface{}) *gomock.Call
RemoveIndex indicates an expected call of RemoveIndex
func (*MockInterfaceMockRecorder) Rollback ¶
func (mr *MockInterfaceMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback
func (*MockInterfaceMockRecorder) Row ¶
func (mr *MockInterfaceMockRecorder) Row() *gomock.Call
Row indicates an expected call of Row
func (*MockInterfaceMockRecorder) Rows ¶
func (mr *MockInterfaceMockRecorder) Rows() *gomock.Call
Rows indicates an expected call of Rows
func (*MockInterfaceMockRecorder) RowsAffected ¶
func (mr *MockInterfaceMockRecorder) RowsAffected() *gomock.Call
RowsAffected indicates an expected call of RowsAffected
func (*MockInterfaceMockRecorder) Save ¶
func (mr *MockInterfaceMockRecorder) Save(arg0 interface{}) *gomock.Call
Save indicates an expected call of Save
func (*MockInterfaceMockRecorder) Scan ¶
func (mr *MockInterfaceMockRecorder) Scan(arg0 interface{}) *gomock.Call
Scan indicates an expected call of Scan
func (*MockInterfaceMockRecorder) ScanRows ¶
func (mr *MockInterfaceMockRecorder) ScanRows(arg0, arg1 interface{}) *gomock.Call
ScanRows indicates an expected call of ScanRows
func (*MockInterfaceMockRecorder) Scopes ¶
func (mr *MockInterfaceMockRecorder) Scopes(arg0 ...interface{}) *gomock.Call
Scopes indicates an expected call of Scopes
func (*MockInterfaceMockRecorder) Select ¶
func (mr *MockInterfaceMockRecorder) Select(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Select indicates an expected call of Select
func (*MockInterfaceMockRecorder) Set ¶
func (mr *MockInterfaceMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set
func (*MockInterfaceMockRecorder) SetJoinTableHandler ¶
func (mr *MockInterfaceMockRecorder) SetJoinTableHandler(arg0, arg1, arg2 interface{}) *gomock.Call
SetJoinTableHandler indicates an expected call of SetJoinTableHandler
func (*MockInterfaceMockRecorder) SetLogger ¶
func (mr *MockInterfaceMockRecorder) SetLogger(arg0 interface{}) *gomock.Call
SetLogger indicates an expected call of SetLogger
func (*MockInterfaceMockRecorder) SingularTable ¶
func (mr *MockInterfaceMockRecorder) SingularTable(arg0 interface{}) *gomock.Call
SingularTable indicates an expected call of SingularTable
func (*MockInterfaceMockRecorder) Table ¶
func (mr *MockInterfaceMockRecorder) Table(arg0 interface{}) *gomock.Call
Table indicates an expected call of Table
func (*MockInterfaceMockRecorder) Take ¶
func (mr *MockInterfaceMockRecorder) Take(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Take indicates an expected call of Take
func (*MockInterfaceMockRecorder) Unscoped ¶
func (mr *MockInterfaceMockRecorder) Unscoped() *gomock.Call
Unscoped indicates an expected call of Unscoped
func (*MockInterfaceMockRecorder) Update ¶
func (mr *MockInterfaceMockRecorder) Update(arg0 ...interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockInterfaceMockRecorder) UpdateColumn ¶
func (mr *MockInterfaceMockRecorder) UpdateColumn(arg0 ...interface{}) *gomock.Call
UpdateColumn indicates an expected call of UpdateColumn
func (*MockInterfaceMockRecorder) UpdateColumns ¶
func (mr *MockInterfaceMockRecorder) UpdateColumns(arg0 interface{}) *gomock.Call
UpdateColumns indicates an expected call of UpdateColumns
func (*MockInterfaceMockRecorder) Updates ¶
func (mr *MockInterfaceMockRecorder) Updates(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Updates indicates an expected call of Updates
func (*MockInterfaceMockRecorder) Value ¶
func (mr *MockInterfaceMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value
func (*MockInterfaceMockRecorder) Where ¶
func (mr *MockInterfaceMockRecorder) Where(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Where indicates an expected call of Where
func (*MockInterfaceMockRecorder) WithContext ¶
func (mr *MockInterfaceMockRecorder) WithContext(arg0 interface{}) *gomock.Call
WithContext indicates an expected call of WithContext
type MockRow ¶
type MockRow struct {
// contains filtered or unexported fields
}
MockRow is a mock of Row interface
func NewMockRow ¶
func NewMockRow(ctrl *gomock.Controller) *MockRow
NewMockRow creates a new mock instance
func (*MockRow) EXPECT ¶
func (m *MockRow) EXPECT() *MockRowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRowMockRecorder ¶
type MockRowMockRecorder struct {
// contains filtered or unexported fields
}
MockRowMockRecorder is the mock recorder for MockRow
func (*MockRowMockRecorder) Scan ¶
func (mr *MockRowMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance
func (*MockRows) ColumnTypes ¶
func (m *MockRows) ColumnTypes() ([]*sql.ColumnType, error)
ColumnTypes mocks base method
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRows) NextResultSet ¶
NextResultSet mocks base method
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockRowsMockRecorder) ColumnTypes ¶
func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
ColumnTypes indicates an expected call of ColumnTypes
func (*MockRowsMockRecorder) Columns ¶
func (mr *MockRowsMockRecorder) Columns() *gomock.Call
Columns indicates an expected call of Columns
func (*MockRowsMockRecorder) Err ¶
func (mr *MockRowsMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next
func (*MockRowsMockRecorder) NextResultSet ¶
func (mr *MockRowsMockRecorder) NextResultSet() *gomock.Call
NextResultSet indicates an expected call of NextResultSet
func (*MockRowsMockRecorder) Scan ¶
func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan