|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Additional unit tests for PROFINET utility helpers. More...
#include <gtest/gtest.h>#include <array>#include <chrono>#include <cstdint>#include <string>#include <vector>#include "profinet/exceptions.h"#include "profinet/protocol.h"#include "profinet/udpSocket.h"#include "profinet/util.h"
Include dependency graph for test_utilMore.cpp:Go to the source code of this file.
Functions | |
| TEST_F (UtilMoreTests, HexFormattersHandleBoundaries) | |
| TEST_F (UtilMoreTests, ToVecConvertsStringBytes) | |
| TEST_F (UtilMoreTests, ToHexHandlesRawPointerAndEmptyInput) | |
| TEST_F (UtilMoreTests, DecodeBytesPreservesEmbeddedNul) | |
| TEST_F (UtilMoreTests, String2MacAcceptsCanonicalHexDigits) | |
| TEST_F (UtilMoreTests, String2MacRejectsMalformedVariants) | |
| TEST_F (UtilMoreTests, IpConversionHandlesBoundaryAddresses) | |
| TEST_F (UtilMoreTests, String2IpRejectsInvalidLength) | |
| TEST_F (UtilMoreTests, Ip2StringRejectsExtraComponents) | |
| TEST_F (UtilMoreTests, SkipVlanTagsHandlesTruncatedTag) | |
| TEST_F (UtilMoreTests, SkipVlanTagsLeavesOrdinaryEtherTypeUntouched) | |
| TEST_F (UtilMoreTests, SkipVlanTagsHandlesTripleTaggedFrame) | |
| TEST_F (UtilMoreTests, MaxTimeoutRemainingIsPositiveBeforeExpiry) | |
| TEST_F (UtilMoreTests, MaxTimeoutRemainingIsZeroAfterExpiry) | |
| TEST_F (UtilMoreTests, MaxTimeoutHandlesPastDeadline) | |
| TEST_F (UtilMoreTests, GetExecutableDirectoryReturnsExistingDirectory) | |
| TEST_F (UtilMoreTests, GetMacRejectsUnknownInterface) | |
| TEST_F (UtilMoreTests, GetMacReadsLoopbackInterface) | |
| TEST_F (UtilMoreTests, SkipVlanTagsRecognizesSupportedTpids) | |
| TEST_F (UtilMoreTests, SkipVlanTagsStopsAfterSupportedTag) | |
| TEST_F (UtilMoreTests, SkipVlanTagsHandlesShortFrame) | |
| TEST_F (UtilMoreTests, SkipVlanTagsHandlesIncompleteVlanHeader) | |
| TEST_F (UtilMoreTests, String2MacHandlesBoundaryValues) | |
| TEST_F (UtilMoreTests, String2MacRejectsWrongDelimiterPosition) | |
| TEST_F (UtilMoreTests, String2MacRejectsWhitespace) | |
| TEST_F (UtilMoreTests, Mac2StringRejectsInvalidLength) | |
| TEST_F (UtilMoreTests, String2IpHandlesExactAndExtendedInput) | |
| TEST_F (UtilMoreTests, DecodeBytesPreservesNonPaddedData) | |
| TEST_F (UtilMoreTests, DecodeBytesHandlesAllNuls) | |
Additional unit tests for PROFINET utility helpers.
Covers hexadecimal formatting, byte/vector conversion, VLAN scanning, IPv4 edge cases, decode behavior, timeout remaining-time semantics, and safe move operations for local socket wrappers.
Definition in file test_utilMore.cpp.
| TEST_F | ( | UtilMoreTests | , |
| DecodeBytesHandlesAllNuls | |||
| ) |
Definition at line 289 of file test_utilMore.cpp.
References profinet::DecodeBytes().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| DecodeBytesPreservesEmbeddedNul | |||
| ) |
Definition at line 66 of file test_utilMore.cpp.
References profinet::DecodeBytes().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| DecodeBytesPreservesNonPaddedData | |||
| ) |
Definition at line 281 of file test_utilMore.cpp.
References profinet::DecodeBytes().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| GetExecutableDirectoryReturnsExistingDirectory | |||
| ) |
Definition at line 175 of file test_utilMore.cpp.
References profinet::GetExecutableDirectory().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| GetMacReadsLoopbackInterface | |||
| ) |
Definition at line 191 of file test_utilMore.cpp.
References profinet::GetInterfaceMac(), and profinet::macAddressLength.
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| GetMacRejectsUnknownInterface | |||
| ) |
Definition at line 185 of file test_utilMore.cpp.
References profinet::GetInterfaceMac().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| HexFormattersHandleBoundaries | |||
| ) |
Definition at line 33 of file test_utilMore.cpp.
References profinet::Hex2(), and profinet::Hex4().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| Ip2StringRejectsExtraComponents | |||
| ) |
Definition at line 105 of file test_utilMore.cpp.
References profinet::Ip2String().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| IpConversionHandlesBoundaryAddresses | |||
| ) |
Definition at line 91 of file test_utilMore.cpp.
References profinet::Ip2String(), and profinet::String2Ip().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| Mac2StringRejectsInvalidLength | |||
| ) |
Definition at line 266 of file test_utilMore.cpp.
References profinet::Mac2String().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| MaxTimeoutHandlesPastDeadline | |||
| ) |
Definition at line 167 of file test_utilMore.cpp.
References profinet::MaxTimeout::TimedOut().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| MaxTimeoutRemainingIsPositiveBeforeExpiry | |||
| ) |
Definition at line 149 of file test_utilMore.cpp.
References profinet::MaxTimeout::Remaining(), and profinet::MaxTimeout::TimedOut().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| MaxTimeoutRemainingIsZeroAfterExpiry | |||
| ) |
Definition at line 158 of file test_utilMore.cpp.
References profinet::MaxTimeout::Remaining(), and profinet::MaxTimeout::TimedOut().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| SkipVlanTagsHandlesIncompleteVlanHeader | |||
| ) |
Definition at line 233 of file test_utilMore.cpp.
References frame, and profinet::SkipVlanTags().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| SkipVlanTagsHandlesShortFrame | |||
| ) |
Definition at line 227 of file test_utilMore.cpp.
References profinet::SkipVlanTags().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| SkipVlanTagsHandlesTripleTaggedFrame | |||
| ) |
Definition at line 131 of file test_utilMore.cpp.
References frame, and profinet::SkipVlanTags().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| SkipVlanTagsHandlesTruncatedTag | |||
| ) |
Definition at line 111 of file test_utilMore.cpp.
References frame, and profinet::SkipVlanTags().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| SkipVlanTagsLeavesOrdinaryEtherTypeUntouched | |||
| ) |
Definition at line 121 of file test_utilMore.cpp.
References frame, and profinet::SkipVlanTags().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| SkipVlanTagsRecognizesSupportedTpids | |||
| ) |
Definition at line 198 of file test_utilMore.cpp.
References frame, and profinet::SkipVlanTags().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| SkipVlanTagsStopsAfterSupportedTag | |||
| ) |
Definition at line 216 of file test_utilMore.cpp.
References frame, and profinet::SkipVlanTags().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| String2IpHandlesExactAndExtendedInput | |||
| ) |
Definition at line 273 of file test_utilMore.cpp.
References profinet::String2Ip().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| String2IpRejectsInvalidLength | |||
| ) |
Definition at line 98 of file test_utilMore.cpp.
References profinet::String2Ip().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| String2MacAcceptsCanonicalHexDigits | |||
| ) |
Definition at line 75 of file test_utilMore.cpp.
References profinet::String2Mac().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| String2MacHandlesBoundaryValues | |||
| ) |
Definition at line 243 of file test_utilMore.cpp.
References profinet::String2Mac().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| String2MacRejectsMalformedVariants | |||
| ) |
Definition at line 82 of file test_utilMore.cpp.
References profinet::String2Mac().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| String2MacRejectsWhitespace | |||
| ) |
Definition at line 261 of file test_utilMore.cpp.
References profinet::String2Mac().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| String2MacRejectsWrongDelimiterPosition | |||
| ) |
Definition at line 255 of file test_utilMore.cpp.
References profinet::String2Mac().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| ToHexHandlesRawPointerAndEmptyInput | |||
| ) |
Definition at line 56 of file test_utilMore.cpp.
References profinet::ToHex().
Here is the call graph for this function:| TEST_F | ( | UtilMoreTests | , |
| ToVecConvertsStringBytes | |||
| ) |
Definition at line 45 of file test_utilMore.cpp.
References profinet::ToVec().
Here is the call graph for this function: