MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / RunTest

Method RunTest

Source/URLabEditor/Private/Tests/MjReplayTests.cpp:112–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)
111
112bool FMjReplayInitialState::RunTest(const FString& Parameters)
113{
114 FReplayTestSession S;
115 if (!S.Init())
116 {
117 AddError(TEXT("Failed to spawn AMjReplayManager"));
118 return false;
119 }
120
121 TestFalse(TEXT("bIsRecording should be false initially"), S.Replay->bIsRecording);
122 TestFalse(TEXT("bIsReplaying should be false initially"), S.Replay->bIsReplaying);
123 TestEqual(TEXT("Live session should be empty initially"), S.GetLiveFrames().Num(), 0);
124
125 S.Cleanup();
126 return true;
127}
128
129// ============================================================================
130// URLab.Replay.StartStopRecording

Callers

nothing calls this directly

Calls 8

MakeTestFrameFunction · 0.85
ClearRecordingMethod · 0.80
SaveRecordingToFileMethod · 0.80
LoadRecordingFromFileMethod · 0.80
InitMethod · 0.45
CleanupMethod · 0.45
StartRecordingMethod · 0.45
StopRecordingMethod · 0.45

Tested by

no test coverage detected