Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
Base class for the unit test framework event implementation (all engine/external-triggered events are wrapped, in order to hook logs triggered during their execution)
NOTE: All wrapped functions/events, begin with 'UT'
| Name | UUnitTestBase |
| Type | class |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTestBase.h |
| Include Path | #include "UnitTestBase.h" |
Syntax
UCLASS (Abstract)
class UUnitTestBase :
public UObject ,
public FUnitLogInterface
Inheritance Hierarchy
- FUnitLogInterface → UUnitTestBase
- UObjectBase → UObjectBaseUtility → UObject → UUnitTestBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UUnitTestBase
(
const FObjectInitializer& ObjectInitializer |
UUnitTestBase | UnitTestBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsTickable() |
Must override in subclasses, that need ticking. | UnitTestBase.h | |
virtual void NetTick() |
Tick function that runs at a tickrate of ~60 fps, for interacting with netcode (high UnitTick tickrate, can lead to net buffer overflows) | UnitTestBase.h | |
virtual void PostUnitTick
(
float DeltaTime |
For cleanup actions that should occur after the primary tick function is called | UnitTestBase.h | |
bool StartUnitTest() |
Adds the unit test to tracking, and starts it | UnitTestBase.h | |
virtual void TickIsComplete
(
float DeltaTime |
Tick function for checking if the unit test is completed (happens after all above tick events) | UnitTestBase.h | |
virtual void UnitTick
(
float DeltaTime |
Main tick function for the unit test | UnitTestBase.h | |
virtual bool UTStartUnitTest() |
UnitTestBase.h |