Chore: Update mocks with recent mockery (#107816)

This commit is contained in:
Ryan McKinley
2025-07-09 09:15:34 +02:00
committed by GitHub
parent 39904d7b9b
commit 3f502f305d
95 changed files with 877 additions and 522 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
// Code generated by mockery v2.43.1. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package mocks
@@ -83,7 +83,7 @@ func (_c *DB_BeginTx_Call) RunAndReturn(run func(context.Context, *sql.TxOptions
return _c
}
// DriverName provides a mock function with given fields:
// DriverName provides a mock function with no fields
func (_m *DB) DriverName() string {
ret := _m.Called()
@@ -374,7 +374,7 @@ func (_c *DB_QueryRowContext_Call) RunAndReturn(run func(context.Context, string
return _c
}
// Stats provides a mock function with given fields:
// Stats provides a mock function with no fields
func (_m *DB) Stats() sql.DBStats {
ret := _m.Called()
+2 -2
View File
@@ -1,4 +1,4 @@
// Code generated by mockery v2.43.1. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package mocks
@@ -17,7 +17,7 @@ func (_m *Row) EXPECT() *Row_Expecter {
return &Row_Expecter{mock: &_m.Mock}
}
// Err provides a mock function with given fields:
// Err provides a mock function with no fields
func (_m *Row) Err() error {
ret := _m.Called()
+5 -5
View File
@@ -1,4 +1,4 @@
// Code generated by mockery v2.43.1. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package mocks
@@ -17,7 +17,7 @@ func (_m *Rows) EXPECT() *Rows_Expecter {
return &Rows_Expecter{mock: &_m.Mock}
}
// Close provides a mock function with given fields:
// Close provides a mock function with no fields
func (_m *Rows) Close() error {
ret := _m.Called()
@@ -62,7 +62,7 @@ func (_c *Rows_Close_Call) RunAndReturn(run func() error) *Rows_Close_Call {
return _c
}
// Err provides a mock function with given fields:
// Err provides a mock function with no fields
func (_m *Rows) Err() error {
ret := _m.Called()
@@ -107,7 +107,7 @@ func (_c *Rows_Err_Call) RunAndReturn(run func() error) *Rows_Err_Call {
return _c
}
// Next provides a mock function with given fields:
// Next provides a mock function with no fields
func (_m *Rows) Next() bool {
ret := _m.Called()
@@ -152,7 +152,7 @@ func (_c *Rows_Next_Call) RunAndReturn(run func() bool) *Rows_Next_Call {
return _c
}
// NextResultSet provides a mock function with given fields:
// NextResultSet provides a mock function with no fields
func (_m *Rows) NextResultSet() bool {
ret := _m.Called()
+3 -3
View File
@@ -1,4 +1,4 @@
// Code generated by mockery v2.43.1. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package mocks
@@ -24,7 +24,7 @@ func (_m *Tx) EXPECT() *Tx_Expecter {
return &Tx_Expecter{mock: &_m.Mock}
}
// Commit provides a mock function with given fields:
// Commit provides a mock function with no fields
func (_m *Tx) Commit() error {
ret := _m.Called()
@@ -269,7 +269,7 @@ func (_c *Tx_QueryRowContext_Call) RunAndReturn(run func(context.Context, string
return _c
}
// Rollback provides a mock function with given fields:
// Rollback provides a mock function with no fields
func (_m *Tx) Rollback() error {
ret := _m.Called()
+3 -3
View File
@@ -1,4 +1,4 @@
// Code generated by mockery v2.43.1. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package mocks
@@ -17,7 +17,7 @@ func (_m *Result) EXPECT() *Result_Expecter {
return &Result_Expecter{mock: &_m.Mock}
}
// LastInsertId provides a mock function with given fields:
// LastInsertId provides a mock function with no fields
func (_m *Result) LastInsertId() (int64, error) {
ret := _m.Called()
@@ -72,7 +72,7 @@ func (_c *Result_LastInsertId_Call) RunAndReturn(run func() (int64, error)) *Res
return _c
}
// RowsAffected provides a mock function with given fields:
// RowsAffected provides a mock function with no fields
func (_m *Result) RowsAffected() (int64, error) {
ret := _m.Called()
@@ -1,4 +1,4 @@
// Code generated by mockery v2.43.1. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package mocks
@@ -171,7 +171,7 @@ func (_c *SQLTemplate_ArgPlaceholder_Call) RunAndReturn(run func(int) string) *S
return _c
}
// CurrentEpoch provides a mock function with given fields:
// CurrentEpoch provides a mock function with no fields
func (_m *SQLTemplate) CurrentEpoch() string {
ret := _m.Called()
@@ -216,7 +216,7 @@ func (_c *SQLTemplate_CurrentEpoch_Call) RunAndReturn(run func() string) *SQLTem
return _c
}
// DialectName provides a mock function with given fields:
// DialectName provides a mock function with no fields
func (_m *SQLTemplate) DialectName() string {
ret := _m.Called()
@@ -261,7 +261,7 @@ func (_c *SQLTemplate_DialectName_Call) RunAndReturn(run func() string) *SQLTemp
return _c
}
// GetArgs provides a mock function with given fields:
// GetArgs provides a mock function with no fields
func (_m *SQLTemplate) GetArgs() []interface{} {
ret := _m.Called()
@@ -308,7 +308,7 @@ func (_c *SQLTemplate_GetArgs_Call) RunAndReturn(run func() []interface{}) *SQLT
return _c
}
// GetColNames provides a mock function with given fields:
// GetColNames provides a mock function with no fields
func (_m *SQLTemplate) GetColNames() []string {
ret := _m.Called()
@@ -355,7 +355,7 @@ func (_c *SQLTemplate_GetColNames_Call) RunAndReturn(run func() []string) *SQLTe
return _c
}
// GetScanDest provides a mock function with given fields:
// GetScanDest provides a mock function with no fields
func (_m *SQLTemplate) GetScanDest() []interface{} {
ret := _m.Called()
@@ -515,7 +515,7 @@ func (_c *SQLTemplate_Into_Call) RunAndReturn(run func(reflect.Value, string) (s
return _c
}
// Reset provides a mock function with given fields:
// Reset provides a mock function with no fields
func (_m *SQLTemplate) Reset() {
_m.Called()
}
@@ -543,7 +543,7 @@ func (_c *SQLTemplate_Reset_Call) Return() *SQLTemplate_Reset_Call {
}
func (_c *SQLTemplate_Reset_Call) RunAndReturn(run func()) *SQLTemplate_Reset_Call {
_c.Call.Return(run)
_c.Run(run)
return _c
}
@@ -645,11 +645,11 @@ func (_c *SQLTemplate_SetDialect_Call) Return() *SQLTemplate_SetDialect_Call {
}
func (_c *SQLTemplate_SetDialect_Call) RunAndReturn(run func(sqltemplate.Dialect)) *SQLTemplate_SetDialect_Call {
_c.Call.Return(run)
_c.Run(run)
return _c
}
// Validate provides a mock function with given fields:
// Validate provides a mock function with no fields
func (_m *SQLTemplate) Validate() error {
ret := _m.Called()
@@ -1,4 +1,4 @@
// Code generated by mockery v2.43.1. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package mocks
@@ -171,7 +171,7 @@ func (_c *WithResults_ArgPlaceholder_Call[T]) RunAndReturn(run func(int) string)
return _c
}
// CurrentEpoch provides a mock function with given fields:
// CurrentEpoch provides a mock function with no fields
func (_m *WithResults[T]) CurrentEpoch() string {
ret := _m.Called()
@@ -216,7 +216,7 @@ func (_c *WithResults_CurrentEpoch_Call[T]) RunAndReturn(run func() string) *Wit
return _c
}
// DialectName provides a mock function with given fields:
// DialectName provides a mock function with no fields
func (_m *WithResults[T]) DialectName() string {
ret := _m.Called()
@@ -261,7 +261,7 @@ func (_c *WithResults_DialectName_Call[T]) RunAndReturn(run func() string) *With
return _c
}
// GetArgs provides a mock function with given fields:
// GetArgs provides a mock function with no fields
func (_m *WithResults[T]) GetArgs() []interface{} {
ret := _m.Called()
@@ -308,7 +308,7 @@ func (_c *WithResults_GetArgs_Call[T]) RunAndReturn(run func() []interface{}) *W
return _c
}
// GetColNames provides a mock function with given fields:
// GetColNames provides a mock function with no fields
func (_m *WithResults[T]) GetColNames() []string {
ret := _m.Called()
@@ -355,7 +355,7 @@ func (_c *WithResults_GetColNames_Call[T]) RunAndReturn(run func() []string) *Wi
return _c
}
// GetScanDest provides a mock function with given fields:
// GetScanDest provides a mock function with no fields
func (_m *WithResults[T]) GetScanDest() []interface{} {
ret := _m.Called()
@@ -515,7 +515,7 @@ func (_c *WithResults_Into_Call[T]) RunAndReturn(run func(reflect.Value, string)
return _c
}
// Reset provides a mock function with given fields:
// Reset provides a mock function with no fields
func (_m *WithResults[T]) Reset() {
_m.Called()
}
@@ -543,11 +543,11 @@ func (_c *WithResults_Reset_Call[T]) Return() *WithResults_Reset_Call[T] {
}
func (_c *WithResults_Reset_Call[T]) RunAndReturn(run func()) *WithResults_Reset_Call[T] {
_c.Call.Return(run)
_c.Run(run)
return _c
}
// Results provides a mock function with given fields:
// Results provides a mock function with no fields
func (_m *WithResults[T]) Results() (T, error) {
ret := _m.Called()
@@ -563,7 +563,9 @@ func (_m *WithResults[T]) Results() (T, error) {
if rf, ok := ret.Get(0).(func() T); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(T)
if ret.Get(0) != nil {
r0 = ret.Get(0).(T)
}
}
if rf, ok := ret.Get(1).(func() error); ok {
@@ -700,11 +702,11 @@ func (_c *WithResults_SetDialect_Call[T]) Return() *WithResults_SetDialect_Call[
}
func (_c *WithResults_SetDialect_Call[T]) RunAndReturn(run func(sqltemplate.Dialect)) *WithResults_SetDialect_Call[T] {
_c.Call.Return(run)
_c.Run(run)
return _c
}
// Validate provides a mock function with given fields:
// Validate provides a mock function with no fields
func (_m *WithResults[T]) Validate() error {
ret := _m.Called()