github.com/secure-build/gitlab-runner@v12.5.0+incompatible/common/mock_JobTrace.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 common 6 7 import context "context" 8 import mock "github.com/stretchr/testify/mock" 9 10 // MockJobTrace is an autogenerated mock type for the JobTrace type 11 type MockJobTrace struct { 12 mock.Mock 13 } 14 15 // Fail provides a mock function with given fields: err, failureReason 16 func (_m *MockJobTrace) Fail(err error, failureReason JobFailureReason) { 17 _m.Called(err, failureReason) 18 } 19 20 // IsStdout provides a mock function with given fields: 21 func (_m *MockJobTrace) IsStdout() bool { 22 ret := _m.Called() 23 24 var r0 bool 25 if rf, ok := ret.Get(0).(func() bool); ok { 26 r0 = rf() 27 } else { 28 r0 = ret.Get(0).(bool) 29 } 30 31 return r0 32 } 33 34 // SetCancelFunc provides a mock function with given fields: cancelFunc 35 func (_m *MockJobTrace) SetCancelFunc(cancelFunc context.CancelFunc) { 36 _m.Called(cancelFunc) 37 } 38 39 // SetFailuresCollector provides a mock function with given fields: fc 40 func (_m *MockJobTrace) SetFailuresCollector(fc FailuresCollector) { 41 _m.Called(fc) 42 } 43 44 // SetMasked provides a mock function with given fields: values 45 func (_m *MockJobTrace) SetMasked(values []string) { 46 _m.Called(values) 47 } 48 49 // Success provides a mock function with given fields: 50 func (_m *MockJobTrace) Success() { 51 _m.Called() 52 } 53 54 // Write provides a mock function with given fields: p 55 func (_m *MockJobTrace) Write(p []byte) (int, error) { 56 ret := _m.Called(p) 57 58 var r0 int 59 if rf, ok := ret.Get(0).(func([]byte) int); ok { 60 r0 = rf(p) 61 } else { 62 r0 = ret.Get(0).(int) 63 } 64 65 var r1 error 66 if rf, ok := ret.Get(1).(func([]byte) error); ok { 67 r1 = rf(p) 68 } else { 69 r1 = ret.Error(1) 70 } 71 72 return r0, r1 73 }