github.com/secure-build/gitlab-runner@v12.5.0+incompatible/executors/docker/internal/volumes/parser/mock_Parser.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // This comment works around https://github.com/vektra/mockery/issues/155 4 5 package parser 6 7 import mock "github.com/stretchr/testify/mock" 8 import path "gitlab.com/gitlab-org/gitlab-runner/helpers/path" 9 10 // MockParser is an autogenerated mock type for the Parser type 11 type MockParser struct { 12 mock.Mock 13 } 14 15 // ParseVolume provides a mock function with given fields: spec 16 func (_m *MockParser) ParseVolume(spec string) (*Volume, error) { 17 ret := _m.Called(spec) 18 19 var r0 *Volume 20 if rf, ok := ret.Get(0).(func(string) *Volume); ok { 21 r0 = rf(spec) 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).(*Volume) 25 } 26 } 27 28 var r1 error 29 if rf, ok := ret.Get(1).(func(string) error); ok { 30 r1 = rf(spec) 31 } else { 32 r1 = ret.Error(1) 33 } 34 35 return r0, r1 36 } 37 38 // Path provides a mock function with given fields: 39 func (_m *MockParser) Path() path.Path { 40 ret := _m.Called() 41 42 var r0 path.Path 43 if rf, ok := ret.Get(0).(func() path.Path); ok { 44 r0 = rf() 45 } else { 46 if ret.Get(0) != nil { 47 r0 = ret.Get(0).(path.Path) 48 } 49 } 50 51 return r0 52 }