Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
General utility functions
| Name | NUTUtil |
| Type | struct |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtil.h |
| Include Path | #include "NUTUtil.h" |
Syntax
struct NUTUtil
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UNetDriver * GetActiveNetDriver
(
UWorld* InWorld |
Returns the currently active net driver (either pending or one for current level) | NUTUtil.h | |
| Get a module name from any UPackage - if it has one | NUTUtil.h | ||
static UWorld * GetPrimaryWorld() |
NUTUtil.h | ||
static void GetUnitTestClassDefList
(
TArray< UUnitTest* >& OutUnitTestClassDefaults |
Outputs a full list of valid unit test class defaults, representing all unit tests which can be executed | NUTUtil.h | |
static bool ParseEnum
(
const TCHAR* Stream, |
Parses the value of specific enum, from the specified commandline stream | NUTUtil.h | |
static bool ParseValue
(
const TCHAR* Stream, |
Overridden parse function, for supporting escaped quotes | NUTUtil.h | |
static bool ParseValue
(
const TCHAR* Stream, |
Overridden parse function, for supporting escaped quotes, e.g: -UnitTestServerParms="-LogCmds="LogNet all"" | NUTUtil.h | |
| Takes a list of unit test class defaults, and reorders them in a more readable way, based on type and implementation date | NUTUtil.h | ||
static void SpecialLog
(
FOutputDeviceFile* Ar, |
Puts out a log message to FOutputDeviceFile, with a special category prefix added. | NUTUtil.h |