Apply clang-format to all test files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-19 14:49:51 +02:00
1 parent d7f6ff1f9e
commit e8d501773b
144 files changed
+1967 -792

No files matched your search

@@ -1,7 +1,7 @@
/**
* @file test_build_rti_guards.cpp
* @brief Tests für BUILD_RTI conditional compilation guards
*
*
* Tests verify that:
* 1. Code compiles with BUILD_RTI=OFF (fallback mode)
* 2. RTI-dependent code is properly guarded
@@ -11,7 +11,8 @@
#include <gtest/gtest.h>
// Test 1: Verify BUILD_RTI macro is defined correctly
TEST(BuildRTIGuards, MacroDefined) {
TEST(BuildRTIGuards, MacroDefined)
{
#ifdef BUILD_RTI
// When BUILD_RTI is enabled, it should be 1
EXPECT_EQ(BUILD_RTI, 1);
@@ -23,7 +24,8 @@ TEST(BuildRTIGuards, MacroDefined) {
}
// Test 2: Verify DDS connector compiles without RTI
TEST(BuildRTIGuards, DDSConnectorFallback) {
TEST(BuildRTIGuards, DDSConnectorFallback)
{
// This test verifies that DDS-related headers can be included
// and basic functionality works without RTI libraries
// The actual DDS connector should have fallback implementations
@@ -31,11 +33,12 @@ TEST(BuildRTIGuards, DDSConnectorFallback) {
#ifdef BUILD_RTI
rti_available = true;
#endif
EXPECT_FALSE(rti_available); // In fallback mode, RTI is not available
EXPECT_FALSE(rti_available); // In fallback mode, RTI is not available
}
// Test 3: Verify conditional compilation doesn't break build
TEST(BuildRTIGuards, ConditionalCompilationSafe) {
TEST(BuildRTIGuards, ConditionalCompilationSafe)
{
// Verify that #if BUILD_RTI guards don't cause syntax errors
int value = 0;
#if BUILD_RTI