sigs.k8s.io/cluster-api-provider-azure@v1.14.3/pkg/coalescing/mocks/coalescing_mock.go (about)

     1  /*
     2  Copyright The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Code generated by MockGen. DO NOT EDIT.
    18  // Source: ../reconciler.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination coalescing_mock.go -package mock_coalescing -source ../reconciler.go ReconcileCacher
    23  //
    24  
    25  // Package mock_coalescing is a generated GoMock package.
    26  package mock_coalescing
    27  
    28  import (
    29  	reflect "reflect"
    30  	time "time"
    31  
    32  	gomock "go.uber.org/mock/gomock"
    33  )
    34  
    35  // MockReconcileCacher is a mock of ReconcileCacher interface.
    36  type MockReconcileCacher struct {
    37  	ctrl     *gomock.Controller
    38  	recorder *MockReconcileCacherMockRecorder
    39  }
    40  
    41  // MockReconcileCacherMockRecorder is the mock recorder for MockReconcileCacher.
    42  type MockReconcileCacherMockRecorder struct {
    43  	mock *MockReconcileCacher
    44  }
    45  
    46  // NewMockReconcileCacher creates a new mock instance.
    47  func NewMockReconcileCacher(ctrl *gomock.Controller) *MockReconcileCacher {
    48  	mock := &MockReconcileCacher{ctrl: ctrl}
    49  	mock.recorder = &MockReconcileCacherMockRecorder{mock}
    50  	return mock
    51  }
    52  
    53  // EXPECT returns an object that allows the caller to indicate expected use.
    54  func (m *MockReconcileCacher) EXPECT() *MockReconcileCacherMockRecorder {
    55  	return m.recorder
    56  }
    57  
    58  // Reconciled mocks base method.
    59  func (m *MockReconcileCacher) Reconciled(key string) {
    60  	m.ctrl.T.Helper()
    61  	m.ctrl.Call(m, "Reconciled", key)
    62  }
    63  
    64  // Reconciled indicates an expected call of Reconciled.
    65  func (mr *MockReconcileCacherMockRecorder) Reconciled(key any) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reconciled", reflect.TypeOf((*MockReconcileCacher)(nil).Reconciled), key)
    68  }
    69  
    70  // ShouldProcess mocks base method.
    71  func (m *MockReconcileCacher) ShouldProcess(key string) (time.Time, bool) {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "ShouldProcess", key)
    74  	ret0, _ := ret[0].(time.Time)
    75  	ret1, _ := ret[1].(bool)
    76  	return ret0, ret1
    77  }
    78  
    79  // ShouldProcess indicates an expected call of ShouldProcess.
    80  func (mr *MockReconcileCacherMockRecorder) ShouldProcess(key any) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldProcess", reflect.TypeOf((*MockReconcileCacher)(nil).ShouldProcess), key)
    83  }