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

Method RunTest

Source/URLabEditor/Private/Tests/MjThreadTests.cpp:43–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)
42
43bool FMjThreadPIERestart::RunTest(const FString& Parameters)
44{
45 // First session
46 {
47 FMjUESession S;
48 if (!S.Init())
49 {
50 AddError(FString::Printf(TEXT("First session Init() failed: %s"), *S.LastError));
51 return false;
52 }
53 TestTrue(TEXT("First session: Manager should be initialized"), S.Manager->IsInitialized());
54 S.Cleanup();
55 }
56
57 // Second session — verifies reinitalization after full shutdown
58 {
59 FMjUESession S2;
60 if (!S2.Init())
61 {
62 AddError(FString::Printf(TEXT("Second session Init() failed: %s"), *S2.LastError));
63 return false;
64 }
65 TestTrue(TEXT("Second session: Manager should be initialized after restart"),
66 S2.Manager->IsInitialized());
67 S2.Cleanup();
68 }
69
70 return true;
71}
72
73// ============================================================================
74// URLab.Thread.ConcurrentRead

Callers

nothing calls this directly

Calls 5

InitMethod · 0.45
IsInitializedMethod · 0.45
CleanupMethod · 0.45
StepMethod · 0.45
IsRunningMethod · 0.45

Tested by

no test coverage detected