[MM-57693] Add schema dump to Support Packet (#31162)
Co-authored-by: Claude <noreply@anthropic.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
824d3b8259
Коммит
04a60b6609
@@ -528,6 +528,36 @@ func (_m *Store) GetLocalSchemaVersion() (int, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetSchemaDefinition provides a mock function with no fields
|
||||
func (_m *Store) GetSchemaDefinition() (*model.SupportPacketDatabaseSchema, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetSchemaDefinition")
|
||||
}
|
||||
|
||||
var r0 *model.SupportPacketDatabaseSchema
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (*model.SupportPacketDatabaseSchema, error)); ok {
|
||||
return rf()
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func() *model.SupportPacketDatabaseSchema); ok {
|
||||
r0 = rf()
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.SupportPacketDatabaseSchema)
|
||||
}
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func() error); ok {
|
||||
r1 = rf()
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// Group provides a mock function with no fields
|
||||
func (_m *Store) Group() store.GroupStore {
|
||||
ret := _m.Called()
|
||||
|
||||
@@ -163,6 +163,12 @@ func (s *Store) Attributes() store.AttributesStore {
|
||||
return &s.AttributesStore
|
||||
}
|
||||
|
||||
func (s *Store) GetSchemaDefinition() (*model.SupportPacketDatabaseSchema, error) {
|
||||
return &model.SupportPacketDatabaseSchema{
|
||||
Tables: []model.DatabaseTable{},
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *Store) AssertExpectations(t mock.TestingT) bool {
|
||||
return mock.AssertExpectationsForObjects(t,
|
||||
&s.TeamStore,
|
||||
|
||||
Ссылка в новой задаче
Block a user