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