github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/integrationsystem/automock/o_auth20_service.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 model "github.com/kyma-incubator/compass/components/director/pkg/model" 11 ) 12 13 // OAuth20Service is an autogenerated mock type for the OAuth20Service type 14 type OAuth20Service struct { 15 mock.Mock 16 } 17 18 // DeleteMultipleClientCredentials provides a mock function with given fields: ctx, auths 19 func (_m *OAuth20Service) DeleteMultipleClientCredentials(ctx context.Context, auths []model.SystemAuth) error { 20 ret := _m.Called(ctx, auths) 21 22 var r0 error 23 if rf, ok := ret.Get(0).(func(context.Context, []model.SystemAuth) error); ok { 24 r0 = rf(ctx, auths) 25 } else { 26 r0 = ret.Error(0) 27 } 28 29 return r0 30 } 31 32 type mockConstructorTestingTNewOAuth20Service interface { 33 mock.TestingT 34 Cleanup(func()) 35 } 36 37 // NewOAuth20Service creates a new instance of OAuth20Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 38 func NewOAuth20Service(t mockConstructorTestingTNewOAuth20Service) *OAuth20Service { 39 mock := &OAuth20Service{} 40 mock.Mock.Test(t) 41 42 t.Cleanup(func() { mock.AssertExpectations(t) }) 43 44 return mock 45 }