Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | /* |
| 18 | * NOTE: This file was generated, manual edits will be overwritten! |
| 19 | * |
| 20 | * Generated by 'goCodeGenerator.py': |
| 21 | * https://github.com/cboling/OMCI-parser/README.md |
| 22 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import ( |
| 27 | "github.com/stretchr/testify/assert" |
| 28 | "testing" |
| 29 | ) |
| 30 | |
| 31 | func TestClassIDMap(t *testing.T) { |
| 32 | for classID, function := range classToManagedEntityMap { |
| 33 | managedEntity, omciError := function() |
| 34 | |
| 35 | assert.NotNil(t, managedEntity) |
| 36 | assert.Equal(t, omciError.StatusCode(), Success) |
| 37 | |
| 38 | assert.Equal(t, classID, managedEntity.GetClassID()) |
| 39 | assert.NotNil(t, managedEntity.GetManagedEntityDefinition()) |
| 40 | } |
| 41 | } |