database

package
v1.15.12 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaceholderFormat added in v1.15.12

type PlaceholderFormat struct {
	mock.Mock
}

PlaceholderFormat is an autogenerated mock type for the PlaceholderFormat type

func NewPlaceholderFormat added in v1.15.12

func NewPlaceholderFormat(t interface {
	mock.TestingT
	Cleanup(func())
}) *PlaceholderFormat

NewPlaceholderFormat creates a new instance of PlaceholderFormat. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PlaceholderFormat) EXPECT added in v1.15.12

func (*PlaceholderFormat) ReplacePlaceholders added in v1.15.12

func (_m *PlaceholderFormat) ReplacePlaceholders(sql string) (string, error)

ReplacePlaceholders provides a mock function with given fields: sql

type PlaceholderFormat_Expecter added in v1.15.12

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

func (*PlaceholderFormat_Expecter) ReplacePlaceholders added in v1.15.12

func (_e *PlaceholderFormat_Expecter) ReplacePlaceholders(sql interface{}) *PlaceholderFormat_ReplacePlaceholders_Call

ReplacePlaceholders is a helper method to define mock.On call

  • sql string

type PlaceholderFormat_ReplacePlaceholders_Call added in v1.15.12

type PlaceholderFormat_ReplacePlaceholders_Call struct {
	*mock.Call
}

PlaceholderFormat_ReplacePlaceholders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplacePlaceholders'

func (*PlaceholderFormat_ReplacePlaceholders_Call) Return added in v1.15.12

func (*PlaceholderFormat_ReplacePlaceholders_Call) Run added in v1.15.12

func (*PlaceholderFormat_ReplacePlaceholders_Call) RunAndReturn added in v1.15.12

type Replacer

type Replacer struct {
	mock.Mock
}

Replacer is an autogenerated mock type for the Replacer type

func NewReplacer

func NewReplacer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Replacer

NewReplacer creates a new instance of Replacer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Replacer) EXPECT

func (_m *Replacer) EXPECT() *Replacer_Expecter

func (*Replacer) Replace

func (_m *Replacer) Replace(name string) string

Replace provides a mock function with given fields: name

type Replacer_Expecter

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

func (*Replacer_Expecter) Replace

func (_e *Replacer_Expecter) Replace(name interface{}) *Replacer_Replace_Call

Replace is a helper method to define mock.On call

  • name string

type Replacer_Replace_Call

type Replacer_Replace_Call struct {
	*mock.Call
}

Replacer_Replace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Replace'

func (*Replacer_Replace_Call) Return

func (*Replacer_Replace_Call) Run

func (_c *Replacer_Replace_Call) Run(run func(name string)) *Replacer_Replace_Call

func (*Replacer_Replace_Call) RunAndReturn

func (_c *Replacer_Replace_Call) RunAndReturn(run func(string) string) *Replacer_Replace_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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