class

AFunctionalTest

Module
Game
Header
#include "Game/AFunctionalTest.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
std::stringTestName
floatTimeLimitDefault 30.0f.
boolFinishedDefault false.
boolPassedDefault false.

Constructors

SignatureNameDescription
AFunctionalTest()AFunctionalTest

Public functions

ReturnsNameDescription
voidOnStartTest
voidFinishTest
voidAssertTrue
voidAssertEqualInt
voidAssertNear
boolIsFinished
std::stringDisplayTestName
voidBeginPlay
voidTick
boolAllFinishedEvery functional test of a world has finished.
boolRunToCompletionTicks 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() const

DisplayTestName

C++
std::string DisplayTestName() const

BeginPlay

C++
void BeginPlay() override

Tick

C++
void Tick(float deltaSeconds) override

AllFinished

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