X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frtmgr%2Frtmgr_test.go;h=2f02b994d5f616af4ee99172cfe3fbb5ad69e439;hb=45b86cc64dc6071f160b0f2c9ab8dfb57d1ce039;hp=ad6c5047aa52dd902509c5ba60028cbb009fd2a6;hpb=92162653c9741f2417d1a36ec1c211d6863d0a68;p=ric-plt%2Frtmgr.git diff --git a/pkg/rtmgr/rtmgr_test.go b/pkg/rtmgr/rtmgr_test.go index ad6c504..2f02b99 100644 --- a/pkg/rtmgr/rtmgr_test.go +++ b/pkg/rtmgr/rtmgr_test.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* @@ -29,18 +33,17 @@ import ( ) func TestSetLogLevel(t *testing.T) { - modes_ok := []string{"info","warn","debug","error"} - modes_nok := []string{"inValId","LogLEVEL","PRoviDeD"} - for _, value := range(modes_ok) { + modeIsOk := []string{"info", "warn", "debug", "error"} + modeOsNok := []string{"inValId", "LogLEVEL", "Provided"} + for _, value := range modeIsOk { if SetLogLevel(value) != nil { t.Error("Invalid log level: " + value) } } - for _, value := range(modes_nok) { - if SetLogLevel(value) == nil { - t.Error("Invalid log level: " + value) - } - } + for _, value := range modeOsNok { + if SetLogLevel(value) == nil { + t.Error("Invalid log level: " + value) + } + } } -