Skip to content

Commit 2efb909

Browse files
committed
Add EnsureAlreadyGuardedTest unit-test.
1 parent 431958d commit 2efb909

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class UTickerGuardedTest
2+
{
3+
UFUNCTION(BlueprintOverride)
4+
void Tick(float DeltaSeconds)
5+
{
6+
FTraceScope TraceScope(n"UGaitGroundContactHelperComponent::Tick");
7+
check(System::IsServer());
8+
9+
#ifdef WITH_SERVER
10+
GroundContactHitResults.Empty();
11+
#endif
12+
}
13+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class UTickerGuardedTest
2+
{
3+
UFUNCTION(BlueprintOverride)
4+
void Tick(float DeltaSeconds)
5+
{
6+
FTraceScope TraceScope(n"UGaitGroundContactHelperComponent::Tick");
7+
check(System::IsServer());
8+
9+
#ifdef WITH_SERVER
10+
GroundContactHitResults.Empty();
11+
#endif
12+
}
13+
};

0 commit comments

Comments
 (0)