Adds further migration results and moves generated tests in
This commit is contained in:
442 files changed
+17126
-246
No files matched your search
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* @file test_aes_dtc.cpp
|
||||
* @brief Tests für AreaEffectSimulation Dtc/Ftc Stub-Header
|
||||
*
|
||||
* Diese Tests validieren dass die generierten DDS-Stub-Header korrekt kompilieren.
|
||||
*/
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
// Include des zu testenden Headers
|
||||
#include "AreaEffectSimulation/aes_dtc.h"
|
||||
|
||||
/**
|
||||
* @test Test dass der Header kompiliert und Namespace existiert
|
||||
*/
|
||||
TEST(AesDtcTest, HeaderCompilesAndNamespaceExists)
|
||||
{
|
||||
// Verify that the namespace and forward declarations exist
|
||||
// This test ensures the stub header compiles correctly
|
||||
using namespace AreaEffectSimulation;
|
||||
using namespace AreaEffectSimulation::Interface;
|
||||
|
||||
// Forward declarations should be available
|
||||
// We can't instantiate them, but we can declare pointers
|
||||
Dtc* dtc_ptr = nullptr;
|
||||
Ftc* ftc_ptr = nullptr;
|
||||
|
||||
EXPECT_EQ(dtc_ptr, nullptr);
|
||||
EXPECT_EQ(ftc_ptr, nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test Test dass Namespace-Struktur korrekt ist
|
||||
*/
|
||||
TEST(AesDtcTest, NamespaceStructure)
|
||||
{
|
||||
// Verify nested namespace structure
|
||||
using DtcType = AreaEffectSimulation::Interface::Dtc;
|
||||
using FtcType = AreaEffectSimulation::Interface::Ftc;
|
||||
|
||||
// Type traits verification (compile-time check)
|
||||
static_assert(std::is_class<DtcType>::value, "Dtc should be a class");
|
||||
static_assert(std::is_class<FtcType>::value, "Ftc should be a class");
|
||||
|
||||
EXPECT_TRUE(true); // Compile-time checks passed
|
||||
}
|
||||
|
||||
/**
|
||||
* @test Test dass Header mehrfach inkludierbar ist (include guard)
|
||||
*/
|
||||
TEST(AesDtcTest, MultipleIncludeGuard)
|
||||
{
|
||||
// Including the header multiple times should not cause errors
|
||||
// This is implicitly tested by including it again here
|
||||
#include "AreaEffectSimulation/aes_dtc.h"
|
||||
|
||||
// If we reach this point, the include guard works
|
||||
EXPECT_TRUE(true);
|
||||
}
|
||||
Reference in new issue
Block a user