github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/pkg/hadolint/mocks/hadolintPiperFileUtils.go (about) 1 // Code generated by mockery v2.0.0-alpha.13. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 os "os" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // HadolintPiperFileUtils is an autogenerated mock type for the HadolintPiperFileUtils type 12 type HadolintPiperFileUtils struct { 13 mock.Mock 14 } 15 16 // FileExists provides a mock function with given fields: filename 17 func (_m *HadolintPiperFileUtils) FileExists(filename string) (bool, error) { 18 ret := _m.Called(filename) 19 20 var r0 bool 21 if rf, ok := ret.Get(0).(func(string) bool); ok { 22 r0 = rf(filename) 23 } else { 24 r0 = ret.Get(0).(bool) 25 } 26 27 var r1 error 28 if rf, ok := ret.Get(1).(func(string) error); ok { 29 r1 = rf(filename) 30 } else { 31 r1 = ret.Error(1) 32 } 33 34 return r0, r1 35 } 36 37 // FileWrite provides a mock function with given fields: filename, data, perm 38 func (_m *HadolintPiperFileUtils) FileWrite(filename string, data []byte, perm os.FileMode) error { 39 ret := _m.Called(filename, data, perm) 40 41 var r0 error 42 if rf, ok := ret.Get(0).(func(string, []byte, os.FileMode) error); ok { 43 r0 = rf(filename, data, perm) 44 } else { 45 r0 = ret.Error(0) 46 } 47 48 return r0 49 } 50 51 func (_m *HadolintPiperFileUtils) WriteFile(filename string, data []byte, perm os.FileMode) error { 52 ret := _m.Called(filename, data, perm) 53 54 var r0 error 55 if rf, ok := ret.Get(0).(func(string, []byte, os.FileMode) error); ok { 56 r0 = rf(filename, data, perm) 57 } else { 58 r0 = ret.Error(0) 59 } 60 61 return r0 62 }