X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=reader%2FsdlInstanceMock.go;h=9bc26a69ce186156c940ca629e49e5891a6611ef;hb=refs%2Ftags%2Freader%2Fv1.2.9;hp=39cb8bc3fb45857705699cb693d5870ea72f4f02;hpb=59fe2681fac4c23cdd9cae30f7529ffbd1677be7;p=ric-plt%2Fnodeb-rnib.git diff --git a/reader/sdlInstanceMock.go b/reader/sdlInstanceMock.go index 39cb8bc..9bc26a6 100644 --- a/reader/sdlInstanceMock.go +++ b/reader/sdlInstanceMock.go @@ -21,115 +21,167 @@ package reader import "github.com/stretchr/testify/mock" +//Deprecated: Will be removed in a future release, please use MockSdlSyncStorage instead. type MockSdlInstance struct { mock.Mock } +//Deprecated: Will be removed in a future release, please use instead the SubscribeChannel +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) SubscribeChannel(cb func(string, ...string), channels ...string) error { a := m.Called(cb, channels) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the UnsubscribeChannel +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) UnsubscribeChannel(channels ...string) error { a := m.Called(channels) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the SetAndPublish +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) SetAndPublish(channelsAndEvents []string, pairs ...interface{}) error { a := m.Called(channelsAndEvents, pairs) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the SetIfAndPublish +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) SetIfAndPublish(channelsAndEvents []string, key string, oldData, newData interface{}) (bool, error) { a := m.Called(channelsAndEvents, key, oldData, newData) return a.Bool(0), a.Error(1) } +//Deprecated: Will be removed in a future release, please use instead the SetIfNotExistsAndPublish +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) SetIfNotExistsAndPublish(channelsAndEvents []string, key string, data interface{}) (bool, error) { a := m.Called(channelsAndEvents, key, data) return a.Bool(0), a.Error(1) } +//Deprecated: Will be removed in a future release, please use instead the RemoveAndPublish +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) RemoveAndPublish(channelsAndEvents []string, keys []string) error { a := m.Called(channelsAndEvents, keys) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the RemoveIfAndPublish +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) RemoveIfAndPublish(channelsAndEvents []string, key string, data interface{}) (bool, error) { a := m.Called(channelsAndEvents, key, data) return a.Bool(0), a.Error(1) } +//Deprecated: Will be removed in a future release, please use instead the RemoveAllAndPublish +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) RemoveAllAndPublish(channelsAndEvents []string) error { a := m.Called(channelsAndEvents) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the Set +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) Set(pairs ...interface{}) error { a := m.Called(pairs) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the Get +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) Get(keys []string) (map[string]interface{}, error) { a := m.Called(keys) return a.Get(0).(map[string]interface{}), a.Error(1) } +//Deprecated: Will be removed in a future release, please use instead the GetAll +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) GetAll() ([]string, error) { a := m.Called() return a.Get(0).([]string), a.Error(1) } +//Deprecated: Will be removed in a future release, please use instead the Close +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) Close() error { a := m.Called() return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the Remove +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) Remove(keys []string) error { a := m.Called(keys) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the RemoveAll +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) RemoveAll() error { a := m.Called() return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the SetIf +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) SetIf(key string, oldData, newData interface{}) (bool, error) { a := m.Called(key, oldData, newData) return a.Bool(0), a.Error(1) } +//Deprecated: Will be removed in a future release, please use instead the SetIfNotExists +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) SetIfNotExists(key string, data interface{}) (bool, error) { a := m.Called(key, data) return a.Bool(0), a.Error(1) } + +//Deprecated: Will be removed in a future release, please use instead the RemoveIf +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) RemoveIf(key string, data interface{}) (bool, error) { a := m.Called(key, data) return a.Bool(0), a.Error(1) } +//Deprecated: Will be removed in a future release, please use instead the AddMember +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) AddMember(group string, member ...interface{}) error { a := m.Called(group, member) return a.Error(0) } +//Deprecated: Will be removed in a future release, please use instead the RemoveMember +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) RemoveMember(group string, member ...interface{}) error { a := m.Called(group, member) return a.Error(0) } + +//Deprecated: Will be removed in a future release, please use instead the RemoveGroup +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) RemoveGroup(group string) error { a := m.Called(group) return a.Error(0) } + +//Deprecated: Will be removed in a future release, please use instead the GetMembers +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) GetMembers(group string) ([]string, error) { a := m.Called(group) return a.Get(0).([]string), a.Error(1) } + +//Deprecated: Will be removed in a future release, please use instead the IsMember +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) IsMember(group string, member interface{}) (bool, error) { a := m.Called(group, member) return a.Bool(0), a.Error(1) } + +//Deprecated: Will be removed in a future release, please use instead the GroupSize +//receiver function of the MockSdlSyncStorage type. func (m *MockSdlInstance) GroupSize(group string) (int64, error) { a := m.Called(group, ) return int64(a.Int(0)), a.Error(1)