- Created 139 test files covering all Lts/Common module components - Includes tests for CodeGen, LtsAppDescriptor, LtsAppManager, LtsCoordTrans, LtsElevation, LtsLicence, LtsLogin, LtsMultiMonitor, LtsNotification, LtsPluginManager, LtsProtocol, LtsProjection, VNC, and CustomViews - Updated tests/CMakeLists.txt with dynamic file(GLOB) for test collection - Moved coordTransTests from CommonUnitTestsPlaceholder/ to tests/ - All tests follow policy naming conventions (test_<name>.cpp) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
56 lines
1.7 KiB
C++
56 lines
1.7 KiB
C++
/**
|
|
* @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);
|
|
} |