github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/deprovisioning/automock/edp_client.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package automock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // EDPClient is an autogenerated mock type for the EDPClient type 8 type EDPClient struct { 9 mock.Mock 10 } 11 12 // DeleteDataTenant provides a mock function with given fields: name, env 13 func (_m *EDPClient) DeleteDataTenant(name string, env string) error { 14 ret := _m.Called(name, env) 15 16 var r0 error 17 if rf, ok := ret.Get(0).(func(string, string) error); ok { 18 r0 = rf(name, env) 19 } else { 20 r0 = ret.Error(0) 21 } 22 23 return r0 24 } 25 26 // DeleteMetadataTenant provides a mock function with given fields: name, env, key 27 func (_m *EDPClient) DeleteMetadataTenant(name string, env string, key string) error { 28 ret := _m.Called(name, env, key) 29 30 var r0 error 31 if rf, ok := ret.Get(0).(func(string, string, string) error); ok { 32 r0 = rf(name, env, key) 33 } else { 34 r0 = ret.Error(0) 35 } 36 37 return r0 38 } 39 40 type mockConstructorTestingTNewEDPClient interface { 41 mock.TestingT 42 Cleanup(func()) 43 } 44 45 // NewEDPClient creates a new instance of EDPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 46 func NewEDPClient(t mockConstructorTestingTNewEDPClient) *EDPClient { 47 mock := &EDPClient{} 48 mock.Mock.Test(t) 49 50 t.Cleanup(func() { mock.AssertExpectations(t) }) 51 52 return mock 53 }