Documentation
¶
Index ¶
- type PlaceholderFormat
- type PlaceholderFormat_Expecter
- type PlaceholderFormat_ReplacePlaceholders_Call
- func (_c *PlaceholderFormat_ReplacePlaceholders_Call) Return(_a0 string, _a1 error) *PlaceholderFormat_ReplacePlaceholders_Call
- func (_c *PlaceholderFormat_ReplacePlaceholders_Call) Run(run func(sql string)) *PlaceholderFormat_ReplacePlaceholders_Call
- func (_c *PlaceholderFormat_ReplacePlaceholders_Call) RunAndReturn(run func(string) (string, error)) *PlaceholderFormat_ReplacePlaceholders_Call
- type Replacer
- type Replacer_Expecter
- type Replacer_Replace_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlaceholderFormat ¶ added in v1.15.12
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 (_m *PlaceholderFormat) EXPECT() *PlaceholderFormat_Expecter
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
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 (_c *PlaceholderFormat_ReplacePlaceholders_Call) Return(_a0 string, _a1 error) *PlaceholderFormat_ReplacePlaceholders_Call
func (*PlaceholderFormat_ReplacePlaceholders_Call) Run ¶ added in v1.15.12
func (_c *PlaceholderFormat_ReplacePlaceholders_Call) Run(run func(sql string)) *PlaceholderFormat_ReplacePlaceholders_Call
func (*PlaceholderFormat_ReplacePlaceholders_Call) RunAndReturn ¶ added in v1.15.12
func (_c *PlaceholderFormat_ReplacePlaceholders_Call) RunAndReturn(run func(string) (string, error)) *PlaceholderFormat_ReplacePlaceholders_Call
type Replacer ¶
Replacer is an autogenerated mock type for the Replacer type
func NewReplacer ¶
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
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 ¶
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 (_c *Replacer_Replace_Call) Return(_a0 string) *Replacer_Replace_Call
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