X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fe2pdus%2Fx2_setup_request_test.go;h=3607d57a1dba54f159e20db1e1924aa74c31eab9;hb=refs%2Fchanges%2F16%2F5116%2F1;hp=42fcff829f89694a2e961404dbd8dd2e3a33c958;hpb=ce7bdb1a54c10071a9aa0310a8e42411dcab9226;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/e2pdus/x2_setup_request_test.go b/E2Manager/e2pdus/x2_setup_request_test.go index 42fcff8..3607d57 100644 --- a/E2Manager/e2pdus/x2_setup_request_test.go +++ b/E2Manager/e2pdus/x2_setup_request_test.go @@ -1,5 +1,4 @@ -/******************************************************************************* - * +/* * Copyright (c) 2019 AT&T Intellectual Property. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * - *******************************************************************************/ + */ + +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). + */ + package e2pdus import ( @@ -65,7 +69,7 @@ func TestPackX2apSetupRequest(t *testing.T) { for _, tc := range testCases { t.Run(tc.packedPdu, func(t *testing.T) { - payload, _, err :=PreparePackedX2SetupRequest(MaxAsn1PackedBufferSize /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, tc.eNBId, tc.eNBIdBitqty,ricFlag) + payload, _, err := preparePackedX2SetupRequest(MaxAsn1PackedBufferSize /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, tc.eNBId, tc.eNBIdBitqty,ricFlag) if err != nil { t.Errorf("want: success, got: pack failed. Error: %v\n", err) } else { @@ -92,7 +96,7 @@ func TestPackX2apSetupRequestPackError(t *testing.T) { ricFlag := []byte{0xbb, 0xbc, 0xcc} /*pLMNId [3]bytes*/ eNBId := []byte{0xab, 0xcd, 0xe} eNBIdBitqty := uint(Macro_eNB_ID) - _, _, err := PreparePackedX2SetupRequest(40 /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, eNBId, eNBIdBitqty, ricFlag) + _, _, err := preparePackedX2SetupRequest(40 /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, eNBId, eNBIdBitqty, ricFlag) if err != nil { if 0 != strings.Compare(fmt.Sprintf("%s", err), wantError) { t.Errorf("want failure: %s, got: %s", wantError, err)