github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/systemauth/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 11 // OAuth20Service is an autogenerated mock type for the OAuth20Service type 12 type OAuth20Service struct { 13 mock.Mock 14 } 15 16 // DeleteClientCredentials provides a mock function with given fields: ctx, clientID 17 func (_m *OAuth20Service) DeleteClientCredentials(ctx context.Context, clientID string) error { 18 ret := _m.Called(ctx, clientID) 19 20 var r0 error 21 if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { 22 r0 = rf(ctx, clientID) 23 } else { 24 r0 = ret.Error(0) 25 } 26 27 return r0 28 } 29 30 type mockConstructorTestingTNewOAuth20Service interface { 31 mock.TestingT 32 Cleanup(func()) 33 } 34 35 // 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. 36 func NewOAuth20Service(t mockConstructorTestingTNewOAuth20Service) *OAuth20Service { 37 mock := &OAuth20Service{} 38 mock.Mock.Test(t) 39 40 t.Cleanup(func() { mock.AssertExpectations(t) }) 41 42 return mock 43 }