4 /* "e2mgr/configuration"
8 "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common"
10 "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
11 //"github.com/pkg/errors"
12 "github.com/stretchr/testify/assert"
16 func initNodebValidatorTest(t *testing.T)(*NodebValidator){
17 nodebValidator := NewNodebValidator()
21 func TestIsGnbValid(t *testing.T){
22 nodebValidator := initNodebValidatorTest(t)
24 res := nodebValidator.IsGnbValid(&gnb)
29 func TestIsEnbValid(t *testing.T){
30 nodebValidator := initNodebValidatorTest(t)
32 res := nodebValidator.IsEnbValid(&enb)
36 func TestIsServedNrCellInformationValid(t *testing.T){
37 servedNrCellInformation := entities.ServedNRCellInformation{}
38 err := isServedNrCellInformationValid(&servedNrCellInformation)
42 func TestIsServedNrCellInfoTddValid(t *testing.T){
43 tdd := entities.ServedNRCellInformation_ChoiceNRMode_TddInfo{}
44 err := isServedNrCellInfoTddValid(&tdd)
48 func TestIsServedNrCellInfoFddValid(t *testing.T){
49 fdd := entities.ServedNRCellInformation_ChoiceNRMode_TddInfo{}
50 err := isServedNrCellInfoTddValid(&fdd)
54 func TestIsNrNeighbourInfoTddValid(t *testing.T){
55 tdd := entities.NrNeighbourInformation_ChoiceNRMode_TddInfo{}
56 err := isNrNeighbourInfoTddValid(&tdd)
60 func TestIsNrNeighbourInfoFddValid(t *testing.T){
61 fdd := entities.NrNeighbourInformation_ChoiceNRMode_FddInfo{}
62 err := isNrNeighbourInfoFddValid(&fdd)
66 func TestIsTddInfoValid(t *testing.T){
67 tdd := entities.TddInfo{}
68 err := isTddInfoValid(&tdd)
72 func TestIsFddInfoValid(t *testing.T){
73 fdd := entities.FddInfo{}
74 err := isFddInfoValid(&fdd)
78 func TestIsServedNrCellInfoChoiceNrModeValid(t *testing.T){
79 choiceNrMode := entities.ServedNRCellInformation_ChoiceNRMode{}
80 res := isServedNrCellInfoChoiceNrModeValid(&choiceNrMode)
84 func TestIsNrNeighbourInformationValid(t *testing.T){
85 nrNeighbourInformation := entities.NrNeighbourInformation{}
86 res := isNrNeighbourInformationValid(&nrNeighbourInformation)
90 func TestIsNrNeighbourInfoChoiceNrModeValid(t *testing.T){
91 choiceNrMode := entities.NrNeighbourInformation_ChoiceNRMode{}
92 res := isNrNeighbourInfoChoiceNrModeValid(&choiceNrMode)