Navigation
Unreal Engine C++ API Reference > Plugins > NetcodeUnitTest
References
Module | NetcodeUnitTest |
Header | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTest.h |
Include | #include "UnitTest.h" |
Syntax
enum EUnitTestResetStage
&123;
None,
FullReset,
ResetConnection,
ResetExecute,
&125;
Values
Name | Description |
---|---|
None | No reset stage |
FullReset | Resets the entire unit test, allowing restart from the beginning |
ResetConnection | For ClientUnitTest's, resets the net connection and minimal client - but not the server - allowing a restart from connecting |
ResetExecute | Resets unit tests to the point prior to 'ExecuteUnitTest' - usually implemented individually per unit test |
Remarks
The different stages that unit tests can be reset to - a global/non-locally-customizable list, for now NOTE: Stages MUST be sequential! (e.g. ResetConnection implies ResetExecute, FullReset implies both ResetConnection and ResetExecute) NOTE: Apart from checking for 'None', all comparisons should be either <= or >=, to support potential enum additions