github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/healthz/automock/indicator.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 healthz "github.com/kyma-incubator/compass/components/director/internal/healthz" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // Indicator is an autogenerated mock type for the Indicator type 13 type Indicator struct { 14 mock.Mock 15 } 16 17 // Configure provides a mock function with given fields: _a0 18 func (_m *Indicator) Configure(_a0 healthz.IndicatorConfig) { 19 _m.Called(_a0) 20 } 21 22 // Name provides a mock function with given fields: 23 func (_m *Indicator) Name() string { 24 ret := _m.Called() 25 26 var r0 string 27 if rf, ok := ret.Get(0).(func() string); ok { 28 r0 = rf() 29 } else { 30 r0 = ret.Get(0).(string) 31 } 32 33 return r0 34 } 35 36 // Run provides a mock function with given fields: ctx 37 func (_m *Indicator) Run(ctx context.Context) { 38 _m.Called(ctx) 39 } 40 41 // Status provides a mock function with given fields: 42 func (_m *Indicator) Status() healthz.Status { 43 ret := _m.Called() 44 45 var r0 healthz.Status 46 if rf, ok := ret.Get(0).(func() healthz.Status); ok { 47 r0 = rf() 48 } else { 49 if ret.Get(0) != nil { 50 r0 = ret.Get(0).(healthz.Status) 51 } 52 } 53 54 return r0 55 } 56 57 type mockConstructorTestingTNewIndicator interface { 58 mock.TestingT 59 Cleanup(func()) 60 } 61 62 // NewIndicator creates a new instance of Indicator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 63 func NewIndicator(t mockConstructorTestingTNewIndicator) *Indicator { 64 mock := &Indicator{} 65 mock.Mock.Test(t) 66 67 t.Cleanup(func() { mock.AssertExpectations(t) }) 68 69 return mock 70 }