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