|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Unit tests for PROFINET alarm item and AlarmNotification parsing. More...
Include dependency graph for test_alarms.cpp:Go to the source code of this file.
Functions | |
| TEST_F (AlarmItemTest, ParseChannelDiagnosis) | |
| TEST_F (AlarmItemTest, ParseExtChannelDiagnosis) | |
| TEST_F (AlarmItemTest, ParsePEAlarmItem) | |
| TEST_F (AlarmItemTest, ParseUnknownUSI) | |
| TEST_F (AlarmItemTest, RejectsTruncatedData) | |
| TEST_F (AlarmItemTest, ParseAlarmNotificationParsesHeaderAndItems) | |
| TEST_F (AlarmItemTest, ParseAlarmNotificationRejectsTooShortData) | |
Unit tests for PROFINET alarm item and AlarmNotification parsing.
Verifies decoding of PROFINET alarm payloads and AlarmNotification PDUs provided by alarms.h.
The tests cover:
The tests validate both the concrete alarm item type selected by USI and the decoded values exposed through the alarm data structures.
Definition in file test_alarms.cpp.
| TEST_F | ( | AlarmItemTest | , |
| ParseAlarmNotificationParsesHeaderAndItems | |||
| ) |
Definition at line 133 of file test_alarms.cpp.
References profinet::AlarmNotification::alarmSequenceNumber, profinet::AlarmNotification::AlarmTypeName(), profinet::AlarmNotification::channelDiagnosis, profinet::AlarmNotification::IsHighPriority(), profinet::AlarmNotification::items, profinet::AlarmNotification::Location(), profinet::ParseAlarmNotification(), profinet::wire::PutU16(), profinet::wire::PutU32(), and profinet::wire::PutU8().
Here is the call graph for this function:| TEST_F | ( | AlarmItemTest | , |
| ParseAlarmNotificationRejectsTooShortData | |||
| ) |
Definition at line 175 of file test_alarms.cpp.
References profinet::ParseAlarmNotification().
Here is the call graph for this function:| TEST_F | ( | AlarmItemTest | , |
| ParseChannelDiagnosis | |||
| ) |
Definition at line 40 of file test_alarms.cpp.
References profinet::ParseAlarmItem(), and profinet::wire::PutU16().
Here is the call graph for this function:| TEST_F | ( | AlarmItemTest | , |
| ParseExtChannelDiagnosis | |||
| ) |
Definition at line 62 of file test_alarms.cpp.
References profinet::ParseAlarmItem(), profinet::wire::PutU16(), and profinet::wire::PutU32().
Here is the call graph for this function:| TEST_F | ( | AlarmItemTest | , |
| ParsePEAlarmItem | |||
| ) |
Definition at line 87 of file test_alarms.cpp.
References profinet::ParseAlarmItem(), and profinet::wire::PutU16().
Here is the call graph for this function:| TEST_F | ( | AlarmItemTest | , |
| ParseUnknownUSI | |||
| ) |
Definition at line 108 of file test_alarms.cpp.
References profinet::ParseAlarmItem(), and profinet::wire::PutU16().
Here is the call graph for this function:| TEST_F | ( | AlarmItemTest | , |
| RejectsTruncatedData | |||
| ) |
Definition at line 128 of file test_alarms.cpp.
References profinet::ParseAlarmItem().
Here is the call graph for this function: