github.com/verrazzano/verrazzano@v1.7.0/platform-operator/mocks/runtime_controller_mock.go (about)

     1  // Copyright (c) 2020, 2023, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  //
     4  
     5  // Code generated by MockGen. DO NOT EDIT.
     6  // Source: sigs.k8s.io/controller-runtime/pkg/controller (interfaces: Controller)
     7  
     8  // Package mocks is a generated GoMock package.
     9  package mocks
    10  
    11  import (
    12  	context "context"
    13  	logr "github.com/go-logr/logr"
    14  	gomock "github.com/golang/mock/gomock"
    15  	reflect "reflect"
    16  	handler "sigs.k8s.io/controller-runtime/pkg/handler"
    17  	predicate "sigs.k8s.io/controller-runtime/pkg/predicate"
    18  	reconcile "sigs.k8s.io/controller-runtime/pkg/reconcile"
    19  	source "sigs.k8s.io/controller-runtime/pkg/source"
    20  )
    21  
    22  // MockController is a mock of Controller interface
    23  type MockController struct {
    24  	ctrl     *gomock.Controller
    25  	recorder *MockControllerMockRecorder
    26  }
    27  
    28  // MockControllerMockRecorder is the mock recorder for MockController
    29  type MockControllerMockRecorder struct {
    30  	mock *MockController
    31  }
    32  
    33  // NewMockController creates a new mock instance
    34  func NewMockController(ctrl *gomock.Controller) *MockController {
    35  	mock := &MockController{ctrl: ctrl}
    36  	mock.recorder = &MockControllerMockRecorder{mock}
    37  	return mock
    38  }
    39  
    40  // EXPECT returns an object that allows the caller to indicate expected use
    41  func (m *MockController) EXPECT() *MockControllerMockRecorder {
    42  	return m.recorder
    43  }
    44  
    45  // GetLogger mocks base method
    46  func (m *MockController) GetLogger() logr.Logger {
    47  	m.ctrl.T.Helper()
    48  	ret := m.ctrl.Call(m, "GetLogger")
    49  	ret0, _ := ret[0].(logr.Logger)
    50  	return ret0
    51  }
    52  
    53  // GetLogger indicates an expected call of GetLogger
    54  func (mr *MockControllerMockRecorder) GetLogger() *gomock.Call {
    55  	mr.mock.ctrl.T.Helper()
    56  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogger", reflect.TypeOf((*MockController)(nil).GetLogger))
    57  }
    58  
    59  // Reconcile mocks base method
    60  func (m *MockController) Reconcile(arg0 context.Context, arg1 reconcile.Request) (reconcile.Result, error) {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "Reconcile", arg0, arg1)
    63  	ret0, _ := ret[0].(reconcile.Result)
    64  	ret1, _ := ret[1].(error)
    65  	return ret0, ret1
    66  }
    67  
    68  // Reconcile indicates an expected call of Reconcile
    69  func (mr *MockControllerMockRecorder) Reconcile(arg0, arg1 interface{}) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reconcile", reflect.TypeOf((*MockController)(nil).Reconcile), arg0, arg1)
    72  }
    73  
    74  // Start mocks base method
    75  func (m *MockController) Start(arg0 context.Context) error {
    76  	m.ctrl.T.Helper()
    77  	ret := m.ctrl.Call(m, "Start", arg0)
    78  	ret0, _ := ret[0].(error)
    79  	return ret0
    80  }
    81  
    82  // Start indicates an expected call of Start
    83  func (mr *MockControllerMockRecorder) Start(arg0 interface{}) *gomock.Call {
    84  	mr.mock.ctrl.T.Helper()
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockController)(nil).Start), arg0)
    86  }
    87  
    88  // Watch mocks base method
    89  func (m *MockController) Watch(arg0 source.Source, arg1 handler.EventHandler, arg2 ...predicate.Predicate) error {
    90  	m.ctrl.T.Helper()
    91  	varargs := []interface{}{arg0, arg1}
    92  	for _, a := range arg2 {
    93  		varargs = append(varargs, a)
    94  	}
    95  	ret := m.ctrl.Call(m, "Watch", varargs...)
    96  	ret0, _ := ret[0].(error)
    97  	return ret0
    98  }
    99  
   100  // Watch indicates an expected call of Watch
   101  func (mr *MockControllerMockRecorder) Watch(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	varargs := append([]interface{}{arg0, arg1}, arg2...)
   104  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockController)(nil).Watch), varargs...)
   105  }