Navigation
Unreal Engine C++ API Reference > Plugins > NUTUnrealEngine > UnitTests
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UUnitTestBase
- UUnitTest
- UProcessUnitTest
- UClientUnitTest
- UFTextCrash
References
Module | NUTUnrealEngine |
Header | /Engine/Plugins/NetcodeUnitTest/NUTUnrealEngine/Source/NUTUnrealEngine/Classes/UnitTests/FTextCrash.h |
Include | #include "UnitTests/FTextCrash.h" |
Syntax
UCLASS&40;&41;
class UFTextCrash : public UClientUnitTest
Remarks
Tests an RPC crash caused by empty FText's, as reported on the UDN here: https://udn.unrealengine.com/questions/213120/using-empty-ftexts-within-rpcs.html
UDN Post: "Using Empty FTexts within RPCs" Hey, we're using FTexts within RPCs functions (server -> client in my specific case) to pass localized strings. That works fine until the point when the server sends an empty FText. In that case both the FText members SourceString and DisplayString are null on client side which lead to crashes whenever you use something like ToString which assumes those are valid.
Is this the intended behavior? I'm using FTextInspector::GetSourceString(text) to run checks on these replicated FTexts now to catch this case. FTexts that are not empty work just fine.
Thanks, Oliver
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UFTextCrash
(
const FObjectInitializer& ObjectInitializer |
UFTextCrash |
Overridden from UClientUnitTest
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Interface and hooked events for client unit tests Override this, to implement the client unit test NOTE: Should be called last, in overridden functions IMPORTANT: EndUnitTest should be triggered, upon completion of the unit test (which may be delayed, for many unit tests) |
Overridden from UProcessUnitTest
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | NotifyProcessLog
(
TWeakPtr< FUnitTestProcess > InProcess, |
Interface for process unit tests For implementation in subclasses, for helping to verify success/fail upon completion of unit tests NOTE: Not called again once VerificationState is set WARNING: Be careful when iterating InLogLines in multiple different for loops, if the sequence of detected logs is important |
Overridden from UUnitTest
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Finishes initializing unit test settings, that rely upon the current unit test environment being loaded |