|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Unit tests for PROFINET index and protocol value lookup utilities. More...
#include <gtest/gtest.h>#include <cstdint>#include <format>#include <string>#include <utility>#include <vector>#include "profinet/indices.h"#include "profinet/util.h"
Include dependency graph for test_indices.cpp:Go to the source code of this file.
Classes | |
| class | profinet::IndicesTest |
Namespaces | |
| namespace | profinet |
Functions | |
| profinet::TEST_F (IndicesTest, GetBlockTypeNameResolvesEveryKnownBlockType) | |
| profinet::TEST_F (IndicesTest, GetBlockTypeNameFallsBackForUnknownTypes) | |
| profinet::TEST_F (IndicesTest, GetAlarmTypeNameResolvesEveryKnownAlarmType) | |
| profinet::TEST_F (IndicesTest, GetAlarmTypeNameFallsBackForUnknownType) | |
| profinet::TEST_F (IndicesTest, GetIocrTypeNameResolvesEveryKnownType) | |
| profinet::TEST_F (IndicesTest, GetIocrTypeNameFallsBackForUnknownType) | |
| profinet::TEST_F (IndicesTest, GetIocrRtClassNameResolvesUdp) | |
| profinet::TEST_F (IndicesTest, GetIocrRtClassNameFallsBackForUnknownType) | |
| profinet::TEST_F (IndicesTest, GetUsiNameResolvesEveryKnownUsi) | |
| profinet::TEST_F (IndicesTest, GetUsiNameClassifiesManufacturerSpecificValues) | |
| profinet::TEST_F (IndicesTest, GetUsiNameClassifiesProfileSpecificValues) | |
| profinet::TEST_F (IndicesTest, GetUsiNameClassifiesReservedValues) | |
| profinet::TEST_F (IndicesTest, GetModuleStateNameResolvesEveryKnownState) | |
| profinet::TEST_F (IndicesTest, GetModuleStateNameFallsBackForUnknownState) | |
| profinet::TEST_F (IndicesTest, GetSubmoduleStateNameResolvesEveryKnownState) | |
| profinet::TEST_F (IndicesTest, GetSubmoduleStateNameFallsBackForUnknownState) | |
| profinet::TEST_F (IndicesTest, GetPeModeNameResolvesFixedModes) | |
| profinet::TEST_F (IndicesTest, GetPeModeNameResolvesEnergySavingRange) | |
| profinet::TEST_F (IndicesTest, GetPeModeNameReturnsReservedForValueBetweenEnergySavingAndOperate) | |
| profinet::TEST_F (IndicesTest, GetPeModeNameReturnsReservedForValueBetweenOperateAndSleepMode) | |
| profinet::TEST_F (IndicesTest, GetPeModeNameReturnsReservedForValueBetweenSleepModeAndReadyToOperate) | |
| profinet::TEST_F (IndicesTest, DiagnosisIndicesReturnsSubslotTable) | |
| profinet::TEST_F (IndicesTest, DiagnosisIndicesReturnsSlotTable) | |
| profinet::TEST_F (IndicesTest, DiagnosisIndicesReturnsArTable) | |
| profinet::TEST_F (IndicesTest, DiagnosisIndicesReturnsApiTable) | |
| profinet::TEST_F (IndicesTest, DiagnosisIndicesReturnsDeviceTable) | |
| profinet::TEST_F (IndicesTest, DiagnosisIndicesReturnsEmptyTableForUnknownScopes) | |
| profinet::TEST_F (IndicesTest, CriticalIndicesReturnsExpectedEntries) | |
| profinet::TEST_F (IndicesTest, ImIndicesReturnsAllImEntries) | |
| profinet::TEST_F (IndicesTest, PortIndicesReturnsExpectedEntries) | |
| profinet::TEST_F (IndicesTest, InterfaceIndicesReturnsExpectedEntries) | |
| profinet::TEST_F (IndicesTest, DeviceIndicesReturnsExpectedEntries) | |
| profinet::TEST_F (IndicesTest, AllStandardIndicesContainsAllStandardCategories) | |
| profinet::TEST_F (IndicesTest, GetIndexNameResolvesAllStandardCategories) | |
| profinet::TEST_F (IndicesTest, GetIndexNameClassifiesUserSpecificIndices) | |
| profinet::TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredImIndices) | |
| profinet::TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredSubslotIndices) | |
| profinet::TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredSlotIndices) | |
| profinet::TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredArIndices) | |
| profinet::TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredApiIndices) | |
| profinet::TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredDeviceIndices) | |
| profinet::TEST_F (IndicesTest, GetIndexNameReturnsUnknownForUnclassifiedIndices) | |
| profinet::TEST_F (IndicesTest, GetScopeClassifiesAllSupportedScopes) | |
| profinet::TEST_F (IndicesTest, GetScopeReturnsUnknownForUnclassifiedRanges) | |
Unit tests for PROFINET index and protocol value lookup utilities.
Verifies enumeration naming, classification, standard-index lookup, and range-based fallback behavior provided by indices.h.
The tests intentionally exercise every named branch of the lookup functions, including unknown and reserved values.
Definition in file test_indices.cpp.