aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/coveragedb/mocks/RowIterator.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-01 19:09:33 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-01 21:41:27 +0000
commitbc80e4f080d226b12fae367dc46bc54ac3681009 (patch)
tree396991c29ca9a28b701a72013e5283ef0188b8ec /pkg/coveragedb/mocks/RowIterator.go
parent065d1b73397a6839320b1fc6cb5b40e8623a4825 (diff)
all/mocks: regenerate with mockery v3
Diffstat (limited to 'pkg/coveragedb/mocks/RowIterator.go')
-rw-r--r--pkg/coveragedb/mocks/RowIterator.go65
1 files changed, 33 insertions, 32 deletions
diff --git a/pkg/coveragedb/mocks/RowIterator.go b/pkg/coveragedb/mocks/RowIterator.go
index 7bea62355..055039af6 100644
--- a/pkg/coveragedb/mocks/RowIterator.go
+++ b/pkg/coveragedb/mocks/RowIterator.go
@@ -1,12 +1,28 @@
-// Code generated by mockery v2.52.1. DO NOT EDIT.
+// Code generated by mockery; DO NOT EDIT.
+// github.com/vektra/mockery
+// template: testify
package mocks
import (
- spannerclient "github.com/google/syzkaller/pkg/coveragedb/spannerclient"
+ "github.com/google/syzkaller/pkg/coveragedb/spannerclient"
mock "github.com/stretchr/testify/mock"
)
+// NewRowIterator creates a new instance of RowIterator. 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 NewRowIterator(t interface {
+ mock.TestingT
+ Cleanup(func())
+}) *RowIterator {
+ mock := &RowIterator{}
+ mock.Mock.Test(t)
+
+ t.Cleanup(func() { mock.AssertExpectations(t) })
+
+ return mock
+}
+
// RowIterator is an autogenerated mock type for the RowIterator type
type RowIterator struct {
mock.Mock
@@ -20,9 +36,9 @@ func (_m *RowIterator) EXPECT() *RowIterator_Expecter {
return &RowIterator_Expecter{mock: &_m.Mock}
}
-// Next provides a mock function with no fields
-func (_m *RowIterator) Next() (spannerclient.Row, error) {
- ret := _m.Called()
+// Next provides a mock function for the type RowIterator
+func (_mock *RowIterator) Next() (spannerclient.Row, error) {
+ ret := _mock.Called()
if len(ret) == 0 {
panic("no return value specified for Next")
@@ -30,23 +46,21 @@ func (_m *RowIterator) Next() (spannerclient.Row, error) {
var r0 spannerclient.Row
var r1 error
- if rf, ok := ret.Get(0).(func() (spannerclient.Row, error)); ok {
- return rf()
+ if returnFunc, ok := ret.Get(0).(func() (spannerclient.Row, error)); ok {
+ return returnFunc()
}
- if rf, ok := ret.Get(0).(func() spannerclient.Row); ok {
- r0 = rf()
+ if returnFunc, ok := ret.Get(0).(func() spannerclient.Row); ok {
+ r0 = returnFunc()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(spannerclient.Row)
}
}
-
- if rf, ok := ret.Get(1).(func() error); ok {
- r1 = rf()
+ if returnFunc, ok := ret.Get(1).(func() error); ok {
+ r1 = returnFunc()
} else {
r1 = ret.Error(1)
}
-
return r0, r1
}
@@ -67,8 +81,8 @@ func (_c *RowIterator_Next_Call) Run(run func()) *RowIterator_Next_Call {
return _c
}
-func (_c *RowIterator_Next_Call) Return(_a0 spannerclient.Row, _a1 error) *RowIterator_Next_Call {
- _c.Call.Return(_a0, _a1)
+func (_c *RowIterator_Next_Call) Return(row spannerclient.Row, err error) *RowIterator_Next_Call {
+ _c.Call.Return(row, err)
return _c
}
@@ -77,9 +91,10 @@ func (_c *RowIterator_Next_Call) RunAndReturn(run func() (spannerclient.Row, err
return _c
}
-// Stop provides a mock function with no fields
-func (_m *RowIterator) Stop() {
- _m.Called()
+// Stop provides a mock function for the type RowIterator
+func (_mock *RowIterator) Stop() {
+ _mock.Called()
+ return
}
// RowIterator_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
@@ -108,17 +123,3 @@ func (_c *RowIterator_Stop_Call) RunAndReturn(run func()) *RowIterator_Stop_Call
_c.Run(run)
return _c
}
-
-// NewRowIterator creates a new instance of RowIterator. 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 NewRowIterator(t interface {
- mock.TestingT
- Cleanup(func())
-}) *RowIterator {
- mock := &RowIterator{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}