![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Comprehensive tests for AIGraphPlugin_BT (Phase 1.2) More...
#include "../AIGraphPlugin_BT/BTNodeRegistry.h"#include "../AIGraphPlugin_BT/BTGraphValidator.h"#include "../AIGraphPlugin_BT/BTGraphCompiler.h"#include "../AIGraphPlugin_BT/BTNodePalette.h"#include "../../NodeGraphCore/GraphDocument.h"#include "../BehaviorTree.h"#include <iostream>#include <cassert>#include <string>
Include dependency graph for TestAIGraphPlugin_BT.cpp:Go to the source code of this file.
Variables | |
| int | g_testsPassed = 0 |
| int | g_testsFailed = 0 |
Comprehensive tests for AIGraphPlugin_BT (Phase 1.2)
Tests all components of AIGraphPlugin_BT:
Definition in file TestAIGraphPlugin_BT.cpp.
Definition at line 272 of file TestAIGraphPlugin_BT.cpp.
References g_testsFailed, g_testsPassed, Test10_RegistryCategoryQuery(), Test1_RegistryInitialization(), Test2_NodeTypeQuery(), Test3_ValidationValidRoot(), Test4_ValidationMultipleRoots(), Test5_ValidationCycle(), Test6_CompilationSimpleBT(), Test7_CompilationInvalidNodeType(), Test8_ValidationChildrenCount(), and Test9_PaletteInstantiation().
Here is the call graph for this function:| void ReportTest | ( | const std::string & | testName, |
| bool | passed | ||
| ) |
Definition at line 36 of file TestAIGraphPlugin_BT.cpp.
References g_testsFailed, g_testsPassed, and GetComponentTypeID_Static().
Referenced by Test10_RegistryCategoryQuery(), Test1_RegistryInitialization(), Test2_NodeTypeQuery(), Test3_ValidationValidRoot(), Test4_ValidationMultipleRoots(), Test5_ValidationCycle(), Test6_CompilationSimpleBT(), Test7_CompilationInvalidNodeType(), Test8_ValidationChildrenCount(), and Test9_PaletteInstantiation().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test10_RegistryCategoryQuery | ( | ) |
Definition at line 253 of file TestAIGraphPlugin_BT.cpp.
References Olympe::AI::BTNodeRegistry::Get(), GetComponentTypeID_Static(), and ReportTest().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test1_RegistryInitialization | ( | ) |
Definition at line 49 of file TestAIGraphPlugin_BT.cpp.
References Olympe::AI::BTNodeRegistry::Get(), GetComponentTypeID_Static(), and ReportTest().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test2_NodeTypeQuery | ( | ) |
Definition at line 60 of file TestAIGraphPlugin_BT.cpp.
References Olympe::AI::BTNodeRegistry::Get(), GetComponentTypeID_Static(), and ReportTest().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test3_ValidationValidRoot | ( | ) |
Definition at line 75 of file TestAIGraphPlugin_BT.cpp.
References GetComponentTypeID_Static(), ReportTest(), Olympe::NodeGraph::GraphDocument::type, 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 Test4_ValidationMultipleRoots | ( | ) |
Definition at line 107 of file TestAIGraphPlugin_BT.cpp.
References GetComponentTypeID_Static(), ReportTest(), Olympe::NodeGraph::GraphDocument::type, 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 Test5_ValidationCycle | ( | ) |
Definition at line 131 of file TestAIGraphPlugin_BT.cpp.
References GetComponentTypeID_Static(), ReportTest(), Olympe::NodeGraph::GraphDocument::type, 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 Test6_CompilationSimpleBT | ( | ) |
Definition at line 168 of file TestAIGraphPlugin_BT.cpp.
References Olympe::AI::BTGraphCompiler::Compile(), GetComponentTypeID_Static(), ReportTest(), and Olympe::NodeGraph::GraphDocument::type.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test7_CompilationInvalidNodeType | ( | ) |
Definition at line 197 of file TestAIGraphPlugin_BT.cpp.
References Olympe::AI::BTGraphCompiler::Compile(), GetComponentTypeID_Static(), ReportTest(), and Olympe::NodeGraph::GraphDocument::type.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void Test8_ValidationChildrenCount | ( | ) |
Definition at line 216 of file TestAIGraphPlugin_BT.cpp.
References GetComponentTypeID_Static(), ReportTest(), Olympe::NodeGraph::GraphDocument::type, 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 Test9_PaletteInstantiation | ( | ) |
Definition at line 240 of file TestAIGraphPlugin_BT.cpp.
References GetComponentTypeID_Static(), Olympe::AI::BTNodePalette::IsDragging(), 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 34 of file TestAIGraphPlugin_BT.cpp.
Referenced by main(), and ReportTest().
| int g_testsPassed = 0 |
Definition at line 33 of file TestAIGraphPlugin_BT.cpp.
Referenced by main(), and ReportTest().