Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Functions | Variables
TestAIEditorGUI.cpp File Reference

Integration tests for AIEditorGUI (Phase 1.3) More...

#include "../AIEditor/AIEditorGUI.h"
#include "../AIEditor/AIEditorClipboard.h"
#include "../AIGraphPlugin_BT/BTNodeRegistry.h"
#include "../AIGraphPlugin_BT/BTGraphValidator.h"
#include "../../NodeGraphCore/NodeGraphManager.h"
#include "../../NodeGraphCore/GraphDocument.h"
#include "../../NodeGraphCore/Commands/CreateNodeCommand.h"
#include <iostream>
#include <cassert>
#include <string>
+ Include dependency graph for TestAIEditorGUI.cpp:

Go to the source code of this file.

Functions

void ReportTest (const std::string &testName, bool passed)
 
void Test1_InitializeAIEditorGUI ()
 
void Test2_CreateNewBTGraph ()
 
void Test3_LoadExistingBT ()
 
void Test4_NodeCreationViaPalette ()
 
void Test5_UndoRedo ()
 
void Test6_ValidateGraph ()
 
void Test7_SaveLoadRoundtrip ()
 
void Test8_MultiGraphTabs ()
 
void Test9_BlackboardPanel ()
 
void Test10_NodePaletteIntegration ()
 
void Test11_ClipboardCopyPaste ()
 
void Test12_ClipboardCut ()
 
void Test13_ClipboardLinkPreservation ()
 
void Test14_LayoutEngineNoOverlap ()
 
void Test15_SaveLoadIntegration ()
 
int main ()
 

Variables

int g_testsPassed = 0
 
int g_testsFailed = 0
 

Detailed Description

Integration tests for AIEditorGUI (Phase 1.3)

Author
Olympe Engine
Date
2026-02-18

Tests all components of AIEditorGUI:

Note
This is a test file. Test output uses std::cout which is acceptable for test reporting purposes. Production code uses SYSTEM_LOG.

Definition in file TestAIEditorGUI.cpp.

Function Documentation

◆ main()

int main ( )

◆ ReportTest()

void ReportTest ( const std::string testName,
bool  passed 
)

◆ Test10_NodePaletteIntegration()

void Test10_NodePaletteIntegration ( )

Definition at line 271 of file TestAIEditorGUI.cpp.

References Olympe::AI::BTNodeRegistry::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test11_ClipboardCopyPaste()

void Test11_ClipboardCopyPaste ( )

◆ Test12_ClipboardCut()

void Test12_ClipboardCut ( )

◆ Test13_ClipboardLinkPreservation()

void Test13_ClipboardLinkPreservation ( )

◆ Test14_LayoutEngineNoOverlap()

void Test14_LayoutEngineNoOverlap ( )

Definition at line 415 of file TestAIEditorGUI.cpp.

References GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test15_SaveLoadIntegration()

void Test15_SaveLoadIntegration ( )

Definition at line 433 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::GraphDocument::CreateNode(), Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test1_InitializeAIEditorGUI()

void Test1_InitializeAIEditorGUI ( )

Definition at line 54 of file TestAIEditorGUI.cpp.

References GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test2_CreateNewBTGraph()

void Test2_CreateNewBTGraph ( )

Definition at line 68 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test3_LoadExistingBT()

void Test3_LoadExistingBT ( )

Definition at line 88 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test4_NodeCreationViaPalette()

void Test4_NodeCreationViaPalette ( )

Definition at line 108 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test5_UndoRedo()

void Test5_UndoRedo ( )

Definition at line 131 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test6_ValidateGraph()

void Test6_ValidateGraph ( )

Definition at line 165 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::GraphDocument::CreateNode(), Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), ReportTest(), and Olympe::AI::BTGraphValidator::ValidateGraph().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test7_SaveLoadRoundtrip()

void Test7_SaveLoadRoundtrip ( )

Definition at line 196 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::GraphDocument::CreateNode(), Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test8_MultiGraphTabs()

void Test8_MultiGraphTabs ( )

Definition at line 226 of file TestAIEditorGUI.cpp.

References Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Test9_BlackboardPanel()

void Test9_BlackboardPanel ( )

Definition at line 253 of file TestAIEditorGUI.cpp.

References GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), and ReportTest().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ g_testsFailed

int g_testsFailed = 0

Definition at line 39 of file TestAIEditorGUI.cpp.

Referenced by main(), and ReportTest().

◆ g_testsPassed

int g_testsPassed = 0

Definition at line 38 of file TestAIEditorGUI.cpp.

Referenced by main(), and ReportTest().