sigs.k8s.io/cluster-api-provider-azure@v1.14.3/internal/test/mock_log/log_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: github.com/go-logr/logr (interfaces: LogSink) 19 // 20 // Generated by this command: 21 // 22 // mockgen -destination log_mock.go -package mock_log github.com/go-logr/logr LogSink 23 // 24 25 // Package mock_log is a generated GoMock package. 26 package mock_log 27 28 import ( 29 reflect "reflect" 30 31 logr "github.com/go-logr/logr" 32 gomock "go.uber.org/mock/gomock" 33 ) 34 35 // MockLogSink is a mock of LogSink interface. 36 type MockLogSink struct { 37 ctrl *gomock.Controller 38 recorder *MockLogSinkMockRecorder 39 } 40 41 // MockLogSinkMockRecorder is the mock recorder for MockLogSink. 42 type MockLogSinkMockRecorder struct { 43 mock *MockLogSink 44 } 45 46 // NewMockLogSink creates a new mock instance. 47 func NewMockLogSink(ctrl *gomock.Controller) *MockLogSink { 48 mock := &MockLogSink{ctrl: ctrl} 49 mock.recorder = &MockLogSinkMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockLogSink) EXPECT() *MockLogSinkMockRecorder { 55 return m.recorder 56 } 57 58 // Enabled mocks base method. 59 func (m *MockLogSink) Enabled(arg0 int) bool { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "Enabled", arg0) 62 ret0, _ := ret[0].(bool) 63 return ret0 64 } 65 66 // Enabled indicates an expected call of Enabled. 67 func (mr *MockLogSinkMockRecorder) Enabled(arg0 any) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enabled", reflect.TypeOf((*MockLogSink)(nil).Enabled), arg0) 70 } 71 72 // Error mocks base method. 73 func (m *MockLogSink) Error(arg0 error, arg1 string, arg2 ...any) { 74 m.ctrl.T.Helper() 75 varargs := []any{arg0, arg1} 76 for _, a := range arg2 { 77 varargs = append(varargs, a) 78 } 79 m.ctrl.Call(m, "Error", varargs...) 80 } 81 82 // Error indicates an expected call of Error. 83 func (mr *MockLogSinkMockRecorder) Error(arg0, arg1 any, arg2 ...any) *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 varargs := append([]any{arg0, arg1}, arg2...) 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Error", reflect.TypeOf((*MockLogSink)(nil).Error), varargs...) 87 } 88 89 // Info mocks base method. 90 func (m *MockLogSink) Info(arg0 int, arg1 string, arg2 ...any) { 91 m.ctrl.T.Helper() 92 varargs := []any{arg0, arg1} 93 for _, a := range arg2 { 94 varargs = append(varargs, a) 95 } 96 m.ctrl.Call(m, "Info", varargs...) 97 } 98 99 // Info indicates an expected call of Info. 100 func (mr *MockLogSinkMockRecorder) Info(arg0, arg1 any, arg2 ...any) *gomock.Call { 101 mr.mock.ctrl.T.Helper() 102 varargs := append([]any{arg0, arg1}, arg2...) 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockLogSink)(nil).Info), varargs...) 104 } 105 106 // Init mocks base method. 107 func (m *MockLogSink) Init(arg0 logr.RuntimeInfo) { 108 m.ctrl.T.Helper() 109 m.ctrl.Call(m, "Init", arg0) 110 } 111 112 // Init indicates an expected call of Init. 113 func (mr *MockLogSinkMockRecorder) Init(arg0 any) *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockLogSink)(nil).Init), arg0) 116 } 117 118 // WithName mocks base method. 119 func (m *MockLogSink) WithName(arg0 string) logr.LogSink { 120 m.ctrl.T.Helper() 121 ret := m.ctrl.Call(m, "WithName", arg0) 122 ret0, _ := ret[0].(logr.LogSink) 123 return ret0 124 } 125 126 // WithName indicates an expected call of WithName. 127 func (mr *MockLogSinkMockRecorder) WithName(arg0 any) *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithName", reflect.TypeOf((*MockLogSink)(nil).WithName), arg0) 130 } 131 132 // WithValues mocks base method. 133 func (m *MockLogSink) WithValues(arg0 ...any) logr.LogSink { 134 m.ctrl.T.Helper() 135 varargs := []any{} 136 for _, a := range arg0 { 137 varargs = append(varargs, a) 138 } 139 ret := m.ctrl.Call(m, "WithValues", varargs...) 140 ret0, _ := ret[0].(logr.LogSink) 141 return ret0 142 } 143 144 // WithValues indicates an expected call of WithValues. 145 func (mr *MockLogSinkMockRecorder) WithValues(arg0 ...any) *gomock.Call { 146 mr.mock.ctrl.T.Helper() 147 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithValues", reflect.TypeOf((*MockLogSink)(nil).WithValues), arg0...) 148 }