Versions in this module Expand all Collapse all v1 v1.5.1 Feb 1, 2023 Changes in this version + func ModelToRows(dst interface{}) *sqlmock.Rows + type DbMock struct + func New(tb TestingTB) *DbMock + func (m *DbMock) Create(model interface{}) *DbMock + func (m *DbMock) DB() *gorm.DB + func (m *DbMock) Delete(model schema.Tabler) *DbMock + func (m *DbMock) ExpectBegin() *DbMock + func (m *DbMock) ExpectCommit() *DbMock + func (m *DbMock) ExpectRollback() *DbMock + func (m *DbMock) Find(model schema.Tabler) *DbMock + func (m *DbMock) Mock() sqlmock.Sqlmock + func (m *DbMock) Return(returns interface{}) + func (m *DbMock) ReturnErr(err error) + func (m *DbMock) ReturnResult(lastInsertID int64, rowsAffected int64) + func (m *DbMock) Sql(sql string) *DbMock + func (m *DbMock) Update(model schema.Tabler) *DbMock + func (m *DbMock) WithArgs(args ...driver.Value) *DbMock + func (m *DbMock) WithArgsChecker(checker func(args []driver.Value) error) *DbMock + func (m *DbMock) WithOpt(checker sqlmock.Matcher) *DbMock + func (m *DbMock) WithPrepare() *DbMock + type TestingTB interface + Cleanup func(f func()) + Errorf func(message string, args ...interface{}) + Fatalf func(format string, args ...interface{}) + Logf func(fmt string, args ...interface{}) + Name func() string