UUnitTestBase

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)

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTestBase.h

Include

#include "UnitTestBase.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Abstract)
class UUnitTestBase :
    public UObject,
    public FUnitLogInterface

Remarks

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)

All wrapped functions/events, begin with 'UT'

Constructors

Name Description

Public function

UUnitTestBase

(
    const FObjectInitializer& ObjectIn...
)

UUnitTestBase

Functions

Name Description

Public function Virtual Const

bool

 

IsTickable()

Must override in subclasses, that need ticking.

Public function 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)

Public function Virtual

void

 

PostUnitTick

(
    float DeltaTime
)

For cleanup actions that should occur after the primary tick function is called

Public function

bool

 

StartUnitTest()

Adds the unit test to tracking, and starts it

Public function Virtual

void

 

TickIsComplete

(
    float DeltaTime
)

Tick function for checking if the unit test is completed (happens after all above tick events)

Public function Virtual

void

 

UnitTick

(
    float DeltaTime
)

Main tick function for the unit test

Public function Virtual

bool

 

UTStartUnitTest()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss