|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Tests for platform-independent interface and executable-path utilities. More...
#include <gtest/gtest.h>#include <array>#include <cstdint>#include <cstdlib>#include <filesystem>#include <string>#include "profinet/exceptions.h"#include "profinet/util.h"
Include dependency graph for test_platform.cpp:Go to the source code of this file.
Macros | |
| #define | PROFINET_TEST_INTERFACE "" |
Functions | |
| TEST (PlatformTests, GetInterfaceMacRejectsEmptyInterface) | |
| TEST (PlatformTests, GetInterfaceMacRejectsUnknownInterface) | |
| TEST (PlatformTests, GetInterfaceMacReturnsSixByteAddress) | |
| TEST (PlatformTests, MacAddressProviderUsesPortableInterfaceLookup) | |
| TEST (PlatformTests, GetExecutableDirectoryReturnsExistingAbsoluteDirectory) | |
| TEST (PlatformTests, GetExecutableDirectoryIsStable) | |
Tests for platform-independent interface and executable-path utilities.
Definition in file test_platform.cpp.
| #define PROFINET_TEST_INTERFACE "" |
Definition at line 16 of file test_platform.cpp.
| TEST | ( | PlatformTests | , |
| GetExecutableDirectoryIsStable | |||
| ) |
Definition at line 83 of file test_platform.cpp.
References profinet::GetExecutableDirectory().
Here is the call graph for this function:| TEST | ( | PlatformTests | , |
| GetExecutableDirectoryReturnsExistingAbsoluteDirectory | |||
| ) |
Definition at line 73 of file test_platform.cpp.
References profinet::GetExecutableDirectory().
Here is the call graph for this function:| TEST | ( | PlatformTests | , |
| GetInterfaceMacRejectsEmptyInterface | |||
| ) |
Definition at line 31 of file test_platform.cpp.
References profinet::GetInterfaceMac().
Here is the call graph for this function:| TEST | ( | PlatformTests | , |
| GetInterfaceMacRejectsUnknownInterface | |||
| ) |
Definition at line 37 of file test_platform.cpp.
References profinet::GetInterfaceMac().
Here is the call graph for this function:| TEST | ( | PlatformTests | , |
| GetInterfaceMacReturnsSixByteAddress | |||
| ) |
Definition at line 43 of file test_platform.cpp.
References profinet::GetInterfaceMac(), and profinet::macAddressLength.
Here is the call graph for this function:| TEST | ( | PlatformTests | , |
| MacAddressProviderUsesPortableInterfaceLookup | |||
| ) |
Definition at line 58 of file test_platform.cpp.
References profinet::GetInterfaceMac(), and profinet::MacAddressProvider::GetMac().
Here is the call graph for this function: