UClientUnitTest::ValidateUnitFlags

Internal base implementation and utility functions for client unit tests Validates, both at compile time (template params) or at runtime (function params), that the specified flags are valid.

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

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

Include

#include "ClientUnitTest.h"

Syntax

template<EUnitTestFlags CompileTimeUnitFlags, EMinClientFlags CompileTimeMinFlags>
void ValidateUnitFlags
(
    EUnitTestFlags RuntimeUnitFlags,
    EMinClientFlags RuntimeMinFlags
)

Remarks

Internal base implementation and utility functions for client unit tests Validates, both at compile time (template params) or at runtime (function params), that the specified flags are valid.

When specifying the whole flag list in one go, do a compile time check using the template parameters. When modifying a runtime-written flag list, do a runtime check on the final flag variables using the function parameters.

Parameters

Parameter

Description

CompileTimeUnitFlags

The compile-time unit test flag list to be checked

CompileTimeMinFlags

The compile-time minimal client flag list to be checked

RuntimeUnitFlags

The runtime unit test flag list to be checked

RuntimeMinFlags

The runtime minimal client flag list to be checked

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