Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
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
| Name | EUnitTestResetStage |
| Type | enum |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTest.h |
| Include Path | #include "UnitTest.h" |
Syntax
enum EUnitTestResetStage
{
None,
FullReset,
ResetConnection,
ResetExecute,
}
Values
| Name | Remarks |
|---|---|
| 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 |