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