2024-06-05 14:17:12 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2025-01-17 14:34:48 +00:00
|
|
|
// Source: github.com/rancher/steve/pkg/sqlcache/informer (interfaces: ByOptionsLister)
|
2024-10-10 17:28:25 +00:00
|
|
|
//
|
|
|
|
// Generated by this command:
|
|
|
|
//
|
2025-01-17 14:34:48 +00:00
|
|
|
// mockgen --build_flags=--mod=mod -package sqlproxy -destination ./sql_informer_mocks_test.go github.com/rancher/steve/pkg/sqlcache/informer ByOptionsLister
|
2024-10-10 17:28:25 +00:00
|
|
|
//
|
2024-06-05 14:17:12 +00:00
|
|
|
|
|
|
|
// Package sqlproxy is a generated GoMock package.
|
|
|
|
package sqlproxy
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
2025-01-17 14:34:48 +00:00
|
|
|
partition "github.com/rancher/steve/pkg/sqlcache/partition"
|
2025-04-25 16:11:09 +00:00
|
|
|
sqltypes "github.com/rancher/steve/pkg/sqlcache/sqltypes"
|
2024-10-10 17:28:25 +00:00
|
|
|
gomock "go.uber.org/mock/gomock"
|
2024-06-05 14:17:12 +00:00
|
|
|
unstructured "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockByOptionsLister is a mock of ByOptionsLister interface.
|
|
|
|
type MockByOptionsLister struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockByOptionsListerMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockByOptionsListerMockRecorder is the mock recorder for MockByOptionsLister.
|
|
|
|
type MockByOptionsListerMockRecorder struct {
|
|
|
|
mock *MockByOptionsLister
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockByOptionsLister creates a new mock instance.
|
|
|
|
func NewMockByOptionsLister(ctrl *gomock.Controller) *MockByOptionsLister {
|
|
|
|
mock := &MockByOptionsLister{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockByOptionsListerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockByOptionsLister) EXPECT() *MockByOptionsListerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListByOptions mocks base method.
|
2025-04-25 18:19:34 +00:00
|
|
|
func (m *MockByOptionsLister) ListByOptions(arg0 context.Context, arg1 *sqltypes.ListOptions, arg2 []partition.Partition, arg3 string) (*unstructured.UnstructuredList, int, string, error) {
|
2024-06-05 14:17:12 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "ListByOptions", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(*unstructured.UnstructuredList)
|
2024-07-05 20:17:16 +00:00
|
|
|
ret1, _ := ret[1].(int)
|
|
|
|
ret2, _ := ret[2].(string)
|
|
|
|
ret3, _ := ret[3].(error)
|
|
|
|
return ret0, ret1, ret2, ret3
|
2024-06-05 14:17:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListByOptions indicates an expected call of ListByOptions.
|
2024-10-10 17:28:25 +00:00
|
|
|
func (mr *MockByOptionsListerMockRecorder) ListByOptions(arg0, arg1, arg2, arg3 any) *gomock.Call {
|
2024-06-05 14:17:12 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByOptions", reflect.TypeOf((*MockByOptionsLister)(nil).ListByOptions), arg0, arg1, arg2, arg3)
|
|
|
|
}
|