k8s.io/kubernetes@v1.29.3/pkg/kubelet/container/testing/mockdirentry.go (about) 1 /* 2 Copyright 2022 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. 18 // Source: os (interfaces: DirEntry) 19 20 package testing 21 22 import ( 23 fs "io/fs" 24 reflect "reflect" 25 26 gomock "github.com/golang/mock/gomock" 27 ) 28 29 // MockDirEntry is a mock of DirEntry interface. 30 type MockDirEntry struct { 31 ctrl *gomock.Controller 32 recorder *MockDirEntryMockRecorder 33 } 34 35 // MockDirEntryMockRecorder is the mock recorder for MockDirEntry. 36 type MockDirEntryMockRecorder struct { 37 mock *MockDirEntry 38 } 39 40 // NewMockDirEntry creates a new mock instance. 41 func NewMockDirEntry(ctrl *gomock.Controller) *MockDirEntry { 42 mock := &MockDirEntry{ctrl: ctrl} 43 mock.recorder = &MockDirEntryMockRecorder{mock} 44 return mock 45 } 46 47 // EXPECT returns an object that allows the caller to indicate expected use. 48 func (m *MockDirEntry) EXPECT() *MockDirEntryMockRecorder { 49 return m.recorder 50 } 51 52 // Info mocks base method. 53 func (m *MockDirEntry) Info() (fs.FileInfo, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Info") 56 ret0, _ := ret[0].(fs.FileInfo) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // Info indicates an expected call of Info. 62 func (mr *MockDirEntryMockRecorder) Info() *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockDirEntry)(nil).Info)) 65 } 66 67 // IsDir mocks base method. 68 func (m *MockDirEntry) IsDir() bool { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "IsDir") 71 ret0, _ := ret[0].(bool) 72 return ret0 73 } 74 75 // IsDir indicates an expected call of IsDir. 76 func (mr *MockDirEntryMockRecorder) IsDir() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsDir", reflect.TypeOf((*MockDirEntry)(nil).IsDir)) 79 } 80 81 // Name mocks base method. 82 func (m *MockDirEntry) Name() string { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "Name") 85 ret0, _ := ret[0].(string) 86 return ret0 87 } 88 89 // Name indicates an expected call of Name. 90 func (mr *MockDirEntryMockRecorder) Name() *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockDirEntry)(nil).Name)) 93 } 94 95 // Type mocks base method. 96 func (m *MockDirEntry) Type() fs.FileMode { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "Type") 99 ret0, _ := ret[0].(fs.FileMode) 100 return ret0 101 } 102 103 // Type indicates an expected call of Type. 104 func (mr *MockDirEntryMockRecorder) Type() *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockDirEntry)(nil).Type)) 107 }