X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmocks%2FrnibReaderMock.go;h=43f9d90536121f7974ec602fb66d05b5d7a62a15;hb=8720fbfe6c21a347b3378f517a214068b4876c30;hp=0d8df339792783ec47a196fd9a9719df82082354;hpb=f9e31bbb0a80ae78cf72eabea8303c28abcdb2e8;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/mocks/rnibReaderMock.go b/E2Manager/mocks/rnibReaderMock.go index 0d8df33..43f9d90 100644 --- a/E2Manager/mocks/rnibReaderMock.go +++ b/E2Manager/mocks/rnibReaderMock.go @@ -17,8 +17,8 @@ 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" ) @@ -29,7 +29,6 @@ type RnibReaderMock struct { func (m *RnibReaderMock) GetNodeb(inventoryName string) (*entities.NodebInfo, common.IRNibError) { args := m.Called(inventoryName) - errArg := args.Get(1); if errArg != nil { @@ -51,7 +50,7 @@ func (m *RnibReaderMock) GetNodebByGlobalNbId(nodeType entities.Node_Type, globa 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); @@ -63,7 +62,7 @@ func (m *RnibReaderMock) GetCellList(inventoryName string) (*entities.Cells, co 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); @@ -75,7 +74,7 @@ func (m *RnibReaderMock) GetListGnbIds()(*[]*entities.NbIdentity, common.IRNibEr 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); @@ -88,7 +87,7 @@ func (m *RnibReaderMock) GetListEnbIds()(*[]*entities.NbIdentity, common.IRNibEr } -func (m *RnibReaderMock) GetCountGnbList()(int, common.IRNibError) { +func (m *RnibReaderMock) GetCountGnbList() (int, common.IRNibError) { args := m.Called() errArg := args.Get(1); @@ -125,7 +124,7 @@ func (m *RnibReaderMock) GetCellById(cellType entities.Cell_Type, cellId string) 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) @@ -137,7 +136,7 @@ func (m *RnibReaderMock) GetListNodebIds()([]*entities.NbIdentity, common.IRNibE return args.Get(0).([]*entities.NbIdentity), nil } -func (m *RnibReaderMock) GetRanLoadInformation(inventoryName string) (*entities.RanLoadInformation, common.IRNibError){ +func (m *RnibReaderMock) GetRanLoadInformation(inventoryName string) (*entities.RanLoadInformation, common.IRNibError) { args := m.Called() errArg := args.Get(1) @@ -147,4 +146,4 @@ func (m *RnibReaderMock) GetRanLoadInformation(inventoryName string) (*entities. } return args.Get(0).(*entities.RanLoadInformation), nil -} \ No newline at end of file +}