mocks

package
v0.0.0-...-7b190fc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialector

type Dialector struct {
	mock.Mock
}

Dialector is an autogenerated mock type for the Dialector type

func NewDialector

func NewDialector(t mockConstructorTestingTNewDialector) *Dialector

NewDialector creates a new instance of Dialector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Dialector) BindVarTo

func (_m *Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{})

BindVarTo provides a mock function with given fields: writer, stmt, v

func (*Dialector) DataTypeOf

func (_m *Dialector) DataTypeOf(_a0 *schema.Field) string

DataTypeOf provides a mock function with given fields: _a0

func (*Dialector) DefaultValueOf

func (_m *Dialector) DefaultValueOf(_a0 *schema.Field) clause.Expression

DefaultValueOf provides a mock function with given fields: _a0

func (*Dialector) Explain

func (_m *Dialector) Explain(sql string, vars ...interface{}) string

Explain provides a mock function with given fields: sql, vars

func (*Dialector) Initialize

func (_m *Dialector) Initialize(_a0 *gorm.DB) error

Initialize provides a mock function with given fields: _a0

func (*Dialector) Migrator

func (_m *Dialector) Migrator(db *gorm.DB) gorm.Migrator

Migrator provides a mock function with given fields: db

func (*Dialector) Name

func (_m *Dialector) Name() string

Name provides a mock function with given fields:

func (*Dialector) QuoteTo

func (_m *Dialector) QuoteTo(_a0 clause.Writer, _a1 string)

QuoteTo provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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