package mocks
import (
- "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common"
+ "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
"github.com/stretchr/testify/mock"
)
func (m *RnibReaderMock) GetNodeb(inventoryName string) (*entities.NodebInfo, common.IRNibError) {
args := m.Called(inventoryName)
-
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Get(0).(*entities.NodebInfo), errArg.(common.IRNibError);
}
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Get(0).(*entities.NodebInfo), errArg.(common.IRNibError);
}
return args.Get(0).(*entities.NodebInfo), nil
}
-func (m *RnibReaderMock) GetCellList(inventoryName string) (*entities.Cells, common.IRNibError) {
+func (m *RnibReaderMock) GetCellList(inventoryName string) (*entities.Cells, common.IRNibError) {
args := m.Called(inventoryName)
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Get(0).(*entities.Cells), errArg.(common.IRNibError);
}
return args.Get(0).(*entities.Cells), nil
}
-func (m *RnibReaderMock) GetListGnbIds()(*[]*entities.NbIdentity, common.IRNibError) {
+func (m *RnibReaderMock) GetListGnbIds() (*[]*entities.NbIdentity, common.IRNibError) {
args := m.Called()
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Get(0).(*[]*entities.NbIdentity), errArg.(common.IRNibError);
}
return args.Get(0).(*[]*entities.NbIdentity), nil
}
-func (m *RnibReaderMock) GetListEnbIds()(*[]*entities.NbIdentity, common.IRNibError) {
+func (m *RnibReaderMock) GetListEnbIds() (*[]*entities.NbIdentity, common.IRNibError) {
args := m.Called()
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Get(0).(*[]*entities.NbIdentity), errArg.(common.IRNibError);
}
}
-func (m *RnibReaderMock) GetCountGnbList()(int, common.IRNibError) {
+func (m *RnibReaderMock) GetCountGnbList() (int, common.IRNibError) {
args := m.Called()
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Int(0), errArg.(common.IRNibError);
}
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Get(0).(*entities.Cell), errArg.(common.IRNibError);
}
errArg := args.Get(1);
- if (errArg != nil) {
+ if errArg != nil {
return args.Get(0).(*entities.Cell), errArg.(common.IRNibError);
}
return args.Get(0).(*entities.Cell), nil
}
-func (m *RnibReaderMock) GetListNodebIds()([]*entities.NbIdentity, common.IRNibError){
+func (m *RnibReaderMock) GetListNodebIds() ([]*entities.NbIdentity, common.IRNibError) {
args := m.Called()
errArg := args.Get(1)
}
return args.Get(0).([]*entities.NbIdentity), nil
-}
\ No newline at end of file
+}
+
+func (m *RnibReaderMock) GetRanLoadInformation(inventoryName string) (*entities.RanLoadInformation, common.IRNibError) {
+ args := m.Called()
+
+ errArg := args.Get(1)
+
+ if errArg != nil {
+ return args.Get(0).(*entities.RanLoadInformation), errArg.(common.IRNibError)
+ }
+
+ return args.Get(0).(*entities.RanLoadInformation), nil
+}