|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Unit tests for PROFINET diagnosis decoding and parsing. More...
Include dependency graph for test_diagnosis.cpp:Go to the source code of this file.
Classes | |
| class | DiagnosisTest |
Functions | |
| TEST_F (DiagnosisTest, ChannelPropertiesFromUint16DecodesAllBitFields) | |
| TEST_F (DiagnosisTest, ChannelPropertiesFromUint16HandlesZeroValue) | |
| TEST_F (DiagnosisTest, DecodeChannelErrorTypeResolvesKnownAndRangeBasedFallbacks) | |
| TEST_F (DiagnosisTest, DecodeExtChannelErrorTypeUsesContextSpecificTables) | |
| TEST_F (DiagnosisTest, ParseDiagnosisBlockParsesSingleChannelDiagnosisEntry) | |
| TEST_F (DiagnosisTest, ParseDiagnosisBlockParsesExtChannelDiagnosisEntry) | |
| TEST_F (DiagnosisTest, ParseDiagnosisBlockLocationHeaderUpdatesLocation) | |
| TEST_F (DiagnosisTest, ParseDiagnosisBlockReturnsEmptyForTooShortData) | |
| TEST_F (DiagnosisTest, ParseDiagnosisSimpleStopsOnZeroFilledSentinelEntry) | |
| TEST_F (DiagnosisTest, DiagnosisDataMaintenanceFlagsReflectEntryFlags) | |
| TEST_F (DiagnosisTest, DiagnosisDataGetByChannelFiltersEntries) | |
Unit tests for PROFINET diagnosis decoding and parsing.
Verifies the diagnosis data structures, error-type decoding, and parsing behavior provided by diagnosis.h.
The tests cover:
Definition in file test_diagnosis.cpp.
| TEST_F | ( | DiagnosisTest | , |
| ChannelPropertiesFromUint16DecodesAllBitFields | |||
| ) |
Definition at line 32 of file test_diagnosis.cpp.
References profinet::diagnosis::ChannelProperties::FromUint16().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| ChannelPropertiesFromUint16HandlesZeroValue | |||
| ) |
Definition at line 56 of file test_diagnosis.cpp.
References profinet::diagnosis::ChannelProperties::FromUint16().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| DecodeChannelErrorTypeResolvesKnownAndRangeBasedFallbacks | |||
| ) |
Definition at line 66 of file test_diagnosis.cpp.
References profinet::diagnosis::DecodeChannelErrorType().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| DecodeExtChannelErrorTypeUsesContextSpecificTables | |||
| ) |
Definition at line 94 of file test_diagnosis.cpp.
References profinet::diagnosis::DecodeExtChannelErrorType().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| DiagnosisDataGetByChannelFiltersEntries | |||
| ) |
Definition at line 319 of file test_diagnosis.cpp.
References profinet::diagnosis::ParseDiagnosisBlock(), profinet::wire::PutU16(), and profinet::wire::PutU8().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| DiagnosisDataMaintenanceFlagsReflectEntryFlags | |||
| ) |
Definition at line 294 of file test_diagnosis.cpp.
References profinet::diagnosis::ParseDiagnosisBlock(), profinet::wire::PutU16(), and profinet::wire::PutU8().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| ParseDiagnosisBlockLocationHeaderUpdatesLocation | |||
| ) |
Definition at line 224 of file test_diagnosis.cpp.
References profinet::diagnosis::ParseDiagnosisBlock(), profinet::wire::PutU16(), profinet::wire::PutU32(), and profinet::wire::PutU8().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| ParseDiagnosisBlockParsesExtChannelDiagnosisEntry | |||
| ) |
Definition at line 192 of file test_diagnosis.cpp.
References profinet::diagnosis::ParseDiagnosisBlock(), profinet::wire::PutU16(), and profinet::wire::PutU8().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| ParseDiagnosisBlockParsesSingleChannelDiagnosisEntry | |||
| ) |
Definition at line 160 of file test_diagnosis.cpp.
References profinet::diagnosis::ParseDiagnosisBlock(), profinet::wire::PutU16(), and profinet::wire::PutU8().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| ParseDiagnosisBlockReturnsEmptyForTooShortData | |||
| ) |
Definition at line 253 of file test_diagnosis.cpp.
References profinet::diagnosis::ParseDiagnosisBlock().
Here is the call graph for this function:| TEST_F | ( | DiagnosisTest | , |
| ParseDiagnosisSimpleStopsOnZeroFilledSentinelEntry | |||
| ) |
Definition at line 264 of file test_diagnosis.cpp.
References profinet::diagnosis::ParseDiagnosisSimple(), profinet::wire::PutU16(), and profinet::wire::PutU8().
Here is the call graph for this function: