![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
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.
Variables | |
| int | g_testsPassed = 0 |
| int | g_testsFailed = 0 |
Integration tests for AIEditorGUI (Phase 1.3)
Tests all components of AIEditorGUI:
Definition in file TestAIEditorGUI.cpp.
| int main | ( | ) |
Definition at line 465 of file TestAIEditorGUI.cpp.
References g_testsFailed, g_testsPassed, Test10_NodePaletteIntegration(), Test11_ClipboardCopyPaste(), Test12_ClipboardCut(), Test13_ClipboardLinkPreservation(), Test14_LayoutEngineNoOverlap(), Test15_SaveLoadIntegration(), Test1_InitializeAIEditorGUI(), Test2_CreateNewBTGraph(), Test3_LoadExistingBT(), Test4_NodeCreationViaPalette(), Test5_UndoRedo(), Test6_ValidateGraph(), Test7_SaveLoadRoundtrip(), Test8_MultiGraphTabs(), and Test9_BlackboardPanel().
Here is the call graph for this function:| void ReportTest | ( | const std::string & | testName, |
| bool | passed | ||
| ) |
Definition at line 41 of file TestAIEditorGUI.cpp.
References g_testsFailed, g_testsPassed, and GetComponentTypeID_Static().
Referenced by Test10_NodePaletteIntegration(), Test11_ClipboardCopyPaste(), Test12_ClipboardCut(), Test13_ClipboardLinkPreservation(), Test14_LayoutEngineNoOverlap(), Test15_SaveLoadIntegration(), Test1_InitializeAIEditorGUI(), Test2_CreateNewBTGraph(), Test3_LoadExistingBT(), Test4_NodeCreationViaPalette(), Test5_UndoRedo(), Test6_ValidateGraph(), Test7_SaveLoadRoundtrip(), Test8_MultiGraphTabs(), and Test9_BlackboardPanel().
Here is the call graph for this function:
Here is the caller graph for this function:| 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:| void Test11_ClipboardCopyPaste | ( | ) |
Definition at line 292 of file TestAIEditorGUI.cpp.
References Olympe::AI::AIEditorClipboard::Copy(), Olympe::AI::AIEditorClipboard::Get(), Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorClipboard::GetNodeCount(), Olympe::AI::AIEditorGUI::Initialize(), Olympe::AI::AIEditorClipboard::IsEmpty(), Olympe::AI::AIEditorClipboard::Paste(), and ReportTest().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test12_ClipboardCut | ( | ) |
Definition at line 331 of file TestAIEditorGUI.cpp.
References Olympe::AI::AIEditorClipboard::Cut(), Olympe::AI::AIEditorClipboard::Get(), Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), Olympe::AI::AIEditorClipboard::IsEmpty(), Olympe::AI::AIEditorClipboard::Paste(), and ReportTest().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test13_ClipboardLinkPreservation | ( | ) |
Definition at line 369 of file TestAIEditorGUI.cpp.
References Olympe::AI::AIEditorClipboard::Copy(), Olympe::AI::AIEditorClipboard::Get(), Olympe::NodeGraph::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::AI::AIEditorGUI::Initialize(), Olympe::AI::AIEditorClipboard::Paste(), ReportTest(), Olympe::NodeGraph::NodeId::value, and Olympe::NodeGraph::PinId::value.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| 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:| 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:| 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:| 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:| 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:| 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:| 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:| 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:| 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:| 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:| 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:| int g_testsFailed = 0 |
Definition at line 39 of file TestAIEditorGUI.cpp.
Referenced by main(), and ReportTest().
| int g_testsPassed = 0 |
Definition at line 38 of file TestAIEditorGUI.cpp.
Referenced by main(), and ReportTest().