diff --git a/experimental/mocks/service/catalog/mock_endpoints_interface.go b/experimental/mocks/service/catalog/mock_endpoints_interface.go deleted file mode 100644 index 47d826255..000000000 --- a/experimental/mocks/service/catalog/mock_endpoints_interface.go +++ /dev/null @@ -1,309 +0,0 @@ -// Code generated by mockery v2.43.0. DO NOT EDIT. - -package catalog - -import ( - context "context" - - catalog "github.com/databricks/databricks-sdk-go/service/catalog" - - mock "github.com/stretchr/testify/mock" -) - -// MockEndpointsInterface is an autogenerated mock type for the EndpointsInterface type -type MockEndpointsInterface struct { - mock.Mock -} - -type MockEndpointsInterface_Expecter struct { - mock *mock.Mock -} - -func (_m *MockEndpointsInterface) EXPECT() *MockEndpointsInterface_Expecter { - return &MockEndpointsInterface_Expecter{mock: &_m.Mock} -} - -// Create provides a mock function with given fields: ctx, request -func (_m *MockEndpointsInterface) Create(ctx context.Context, request catalog.CreateEndpointRequest) (*catalog.Endpoint, error) { - ret := _m.Called(ctx, request) - - if len(ret) == 0 { - panic("no return value specified for Create") - } - - var r0 *catalog.Endpoint - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, catalog.CreateEndpointRequest) (*catalog.Endpoint, error)); ok { - return rf(ctx, request) - } - if rf, ok := ret.Get(0).(func(context.Context, catalog.CreateEndpointRequest) *catalog.Endpoint); ok { - r0 = rf(ctx, request) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*catalog.Endpoint) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, catalog.CreateEndpointRequest) error); ok { - r1 = rf(ctx, request) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockEndpointsInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create' -type MockEndpointsInterface_Create_Call struct { - *mock.Call -} - -// Create is a helper method to define mock.On call -// - ctx context.Context -// - request catalog.CreateEndpointRequest -func (_e *MockEndpointsInterface_Expecter) Create(ctx interface{}, request interface{}) *MockEndpointsInterface_Create_Call { - return &MockEndpointsInterface_Create_Call{Call: _e.mock.On("Create", ctx, request)} -} - -func (_c *MockEndpointsInterface_Create_Call) Run(run func(ctx context.Context, request catalog.CreateEndpointRequest)) *MockEndpointsInterface_Create_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(catalog.CreateEndpointRequest)) - }) - return _c -} - -func (_c *MockEndpointsInterface_Create_Call) Return(_a0 *catalog.Endpoint, _a1 error) *MockEndpointsInterface_Create_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockEndpointsInterface_Create_Call) RunAndReturn(run func(context.Context, catalog.CreateEndpointRequest) (*catalog.Endpoint, error)) *MockEndpointsInterface_Create_Call { - _c.Call.Return(run) - return _c -} - -// Delete provides a mock function with given fields: ctx, request -func (_m *MockEndpointsInterface) Delete(ctx context.Context, request catalog.DeleteEndpointRequest) error { - ret := _m.Called(ctx, request) - - if len(ret) == 0 { - panic("no return value specified for Delete") - } - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, catalog.DeleteEndpointRequest) error); ok { - r0 = rf(ctx, request) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockEndpointsInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete' -type MockEndpointsInterface_Delete_Call struct { - *mock.Call -} - -// Delete is a helper method to define mock.On call -// - ctx context.Context -// - request catalog.DeleteEndpointRequest -func (_e *MockEndpointsInterface_Expecter) Delete(ctx interface{}, request interface{}) *MockEndpointsInterface_Delete_Call { - return &MockEndpointsInterface_Delete_Call{Call: _e.mock.On("Delete", ctx, request)} -} - -func (_c *MockEndpointsInterface_Delete_Call) Run(run func(ctx context.Context, request catalog.DeleteEndpointRequest)) *MockEndpointsInterface_Delete_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(catalog.DeleteEndpointRequest)) - }) - return _c -} - -func (_c *MockEndpointsInterface_Delete_Call) Return(_a0 error) *MockEndpointsInterface_Delete_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockEndpointsInterface_Delete_Call) RunAndReturn(run func(context.Context, catalog.DeleteEndpointRequest) error) *MockEndpointsInterface_Delete_Call { - _c.Call.Return(run) - return _c -} - -// DeleteByName provides a mock function with given fields: ctx, name -func (_m *MockEndpointsInterface) DeleteByName(ctx context.Context, name string) error { - ret := _m.Called(ctx, name) - - if len(ret) == 0 { - panic("no return value specified for DeleteByName") - } - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { - r0 = rf(ctx, name) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// MockEndpointsInterface_DeleteByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByName' -type MockEndpointsInterface_DeleteByName_Call struct { - *mock.Call -} - -// DeleteByName is a helper method to define mock.On call -// - ctx context.Context -// - name string -func (_e *MockEndpointsInterface_Expecter) DeleteByName(ctx interface{}, name interface{}) *MockEndpointsInterface_DeleteByName_Call { - return &MockEndpointsInterface_DeleteByName_Call{Call: _e.mock.On("DeleteByName", ctx, name)} -} - -func (_c *MockEndpointsInterface_DeleteByName_Call) Run(run func(ctx context.Context, name string)) *MockEndpointsInterface_DeleteByName_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(string)) - }) - return _c -} - -func (_c *MockEndpointsInterface_DeleteByName_Call) Return(_a0 error) *MockEndpointsInterface_DeleteByName_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockEndpointsInterface_DeleteByName_Call) RunAndReturn(run func(context.Context, string) error) *MockEndpointsInterface_DeleteByName_Call { - _c.Call.Return(run) - return _c -} - -// Get provides a mock function with given fields: ctx, request -func (_m *MockEndpointsInterface) Get(ctx context.Context, request catalog.GetEndpointRequest) (*catalog.Endpoint, error) { - ret := _m.Called(ctx, request) - - if len(ret) == 0 { - panic("no return value specified for Get") - } - - var r0 *catalog.Endpoint - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, catalog.GetEndpointRequest) (*catalog.Endpoint, error)); ok { - return rf(ctx, request) - } - if rf, ok := ret.Get(0).(func(context.Context, catalog.GetEndpointRequest) *catalog.Endpoint); ok { - r0 = rf(ctx, request) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*catalog.Endpoint) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, catalog.GetEndpointRequest) error); ok { - r1 = rf(ctx, request) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockEndpointsInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get' -type MockEndpointsInterface_Get_Call struct { - *mock.Call -} - -// Get is a helper method to define mock.On call -// - ctx context.Context -// - request catalog.GetEndpointRequest -func (_e *MockEndpointsInterface_Expecter) Get(ctx interface{}, request interface{}) *MockEndpointsInterface_Get_Call { - return &MockEndpointsInterface_Get_Call{Call: _e.mock.On("Get", ctx, request)} -} - -func (_c *MockEndpointsInterface_Get_Call) Run(run func(ctx context.Context, request catalog.GetEndpointRequest)) *MockEndpointsInterface_Get_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(catalog.GetEndpointRequest)) - }) - return _c -} - -func (_c *MockEndpointsInterface_Get_Call) Return(_a0 *catalog.Endpoint, _a1 error) *MockEndpointsInterface_Get_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockEndpointsInterface_Get_Call) RunAndReturn(run func(context.Context, catalog.GetEndpointRequest) (*catalog.Endpoint, error)) *MockEndpointsInterface_Get_Call { - _c.Call.Return(run) - return _c -} - -// GetByName provides a mock function with given fields: ctx, name -func (_m *MockEndpointsInterface) GetByName(ctx context.Context, name string) (*catalog.Endpoint, error) { - ret := _m.Called(ctx, name) - - if len(ret) == 0 { - panic("no return value specified for GetByName") - } - - var r0 *catalog.Endpoint - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, string) (*catalog.Endpoint, error)); ok { - return rf(ctx, name) - } - if rf, ok := ret.Get(0).(func(context.Context, string) *catalog.Endpoint); ok { - r0 = rf(ctx, name) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*catalog.Endpoint) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { - r1 = rf(ctx, name) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MockEndpointsInterface_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName' -type MockEndpointsInterface_GetByName_Call struct { - *mock.Call -} - -// GetByName is a helper method to define mock.On call -// - ctx context.Context -// - name string -func (_e *MockEndpointsInterface_Expecter) GetByName(ctx interface{}, name interface{}) *MockEndpointsInterface_GetByName_Call { - return &MockEndpointsInterface_GetByName_Call{Call: _e.mock.On("GetByName", ctx, name)} -} - -func (_c *MockEndpointsInterface_GetByName_Call) Run(run func(ctx context.Context, name string)) *MockEndpointsInterface_GetByName_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(string)) - }) - return _c -} - -func (_c *MockEndpointsInterface_GetByName_Call) Return(_a0 *catalog.Endpoint, _a1 error) *MockEndpointsInterface_GetByName_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *MockEndpointsInterface_GetByName_Call) RunAndReturn(run func(context.Context, string) (*catalog.Endpoint, error)) *MockEndpointsInterface_GetByName_Call { - _c.Call.Return(run) - return _c -} - -// NewMockEndpointsInterface creates a new instance of MockEndpointsInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewMockEndpointsInterface(t interface { - mock.TestingT - Cleanup(func()) -}) *MockEndpointsInterface { - mock := &MockEndpointsInterface{} - mock.Mock.Test(t) - - t.Cleanup(func() { mock.AssertExpectations(t) }) - - return mock -}