class
AFunctionalTest
- Module
- Game
- Header
#include "Game/AFunctionalTest.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
std::string | TestName | |
float | TimeLimit | Default 30.0f. |
bool | Finished | Default false. |
bool | Passed | Default false. |
Constructors
| Signature | Name | Description |
|---|---|---|
AFunctionalTest() | AFunctionalTest |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnStartTest | |
void | FinishTest | |
void | AssertTrue | |
void | AssertEqualInt | |
void | AssertNear | |
bool | IsFinished | |
std::string | DisplayTestName | |
void | BeginPlay | |
void | Tick | |
bool | AllFinished | Every functional test of a world has finished. |
bool | RunToCompletion | Ticks the world until every functional test in it has finished or maxSeconds of game time has passed; returns false when the budget ran out. |
Function details
AFunctionalTest
C++
AFunctionalTest()OnStartTest
C++
void OnStartTest()FinishTest
C++
void FinishTest(bool Passed, const std::string& Message)AssertTrue
C++
void AssertTrue(bool Condition, const std::string& Message)AssertEqualInt
C++
void AssertEqualInt(int32_t Actual, int32_t Expected, const std::string& Message)AssertNear
C++
void AssertNear(float Actual, float Expected, float Tolerance, const std::string& Message)IsFinished
C++
bool IsFinished() constDisplayTestName
C++
std::string DisplayTestName() constBeginPlay
C++
void BeginPlay() overrideTick
C++
void Tick(float deltaSeconds) overrideAllFinished
C++
static bool AllFinished(MWorld& world)Every functional test of a world has finished.
RunToCompletion
C++
static bool RunToCompletion(MWorld& world, float maxSeconds, float stepSeconds = 1.0f / 60.0f)Ticks the world until every functional test in it has finished or maxSeconds of game time has passed; returns false when the budget ran out.
Generated from Game/AFunctionalTest.h via game.json · Dec 5, 2026Version 1.1.0