Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
LowLevelTestAdapter.h File Reference
#include "CoreTypes.h"
#include "Misc/AssertionMacros.h"
+ Include dependency graph for LowLevelTestAdapter.h:

Go to the source code of this file.

Macros

#define IMPLEMENT_SIMPLE_AUTOMATION_TEST_PRIVATE_LLT(TClass, PrettyName, TFlags, FileName, LineNumber)
 
#define LLT_JOIN(Prefix, Counter)   LLT_JOIN_INNER(Prefix, Counter)
 
#define LLT_JOIN_INNER(Prefix, Counter)   Prefix##Counter
 
#define TEST_CASE_NAMED(TClass, StrName, PrettyName, TFlags)
 
#define TEST_CASE_GENERATED_NAME_UNIQUE   LLT_JOIN(FLLTAdaptedTest, __COUNTER__)
 
#define LLT_STR(Macro)   #Macro
 
#define LLT_STR_EXPAND(Macro)   LLT_STR(Macro)
 
#define TEST_CASE_GENERATED_NAME_UNIQUE_STR   LLT_STR_EXPAND(TEST_CASE_GENERATED_NAME_UNIQUE)
 
#define TEST_CASE(PrettyName, TFlags)   TEST_CASE_NAMED(TEST_CASE_GENERATED_NAME_UNIQUE, TEST_CASE_GENERATED_NAME_UNIQUE_STR, PrettyName, TFlags)
 
#define CHECK(Expr)   if (!(Expr)) { FAutomationTestFramework::Get().GetCurrentTest()->AddError(TEXT("Condition failed")); }
 
#define CHECK_FALSE(Expr)   if (Expr) { FAutomationTestFramework::Get().GetCurrentTest()->AddError(TEXT("Condition expected to return false but returned true")); }
 
#define REQUIRE(Expr)   if (!(Expr)) { FAutomationTestFramework::Get().GetCurrentTest()->AddError(TEXT("Required condition failed, interrupting test")); return; }
 
#define SECTION(Text)   AddInfo(TEXT(Text));
 

Macro Definition Documentation

◆ CHECK

#define CHECK ( Expr)    if (!(Expr)) { FAutomationTestFramework::Get().GetCurrentTest()->AddError(TEXT("Condition failed")); }

Definition at line 68 of file LowLevelTestAdapter.h.

◆ CHECK_FALSE

#define CHECK_FALSE ( Expr)    if (Expr) { FAutomationTestFramework::Get().GetCurrentTest()->AddError(TEXT("Condition expected to return false but returned true")); }

Definition at line 69 of file LowLevelTestAdapter.h.

◆ IMPLEMENT_SIMPLE_AUTOMATION_TEST_PRIVATE_LLT

#define IMPLEMENT_SIMPLE_AUTOMATION_TEST_PRIVATE_LLT ( TClass,
PrettyName,
TFlags,
FileName,
LineNumber )

Definition at line 10 of file LowLevelTestAdapter.h.

◆ LLT_JOIN

#define LLT_JOIN ( Prefix,
Counter )   LLT_JOIN_INNER(Prefix, Counter)

Definition at line 50 of file LowLevelTestAdapter.h.

◆ LLT_JOIN_INNER

#define LLT_JOIN_INNER ( Prefix,
Counter )   Prefix##Counter

Definition at line 51 of file LowLevelTestAdapter.h.

◆ LLT_STR

#define LLT_STR ( Macro)    #Macro

Definition at line 63 of file LowLevelTestAdapter.h.

◆ LLT_STR_EXPAND

#define LLT_STR_EXPAND ( Macro)    LLT_STR(Macro)

Definition at line 64 of file LowLevelTestAdapter.h.

◆ REQUIRE

#define REQUIRE ( Expr)    if (!(Expr)) { FAutomationTestFramework::Get().GetCurrentTest()->AddError(TEXT("Required condition failed, interrupting test")); return; }

Definition at line 70 of file LowLevelTestAdapter.h.

◆ SECTION

#define SECTION ( Text)    AddInfo(TEXT(Text));

Definition at line 72 of file LowLevelTestAdapter.h.

◆ TEST_CASE

◆ TEST_CASE_GENERATED_NAME_UNIQUE

#define TEST_CASE_GENERATED_NAME_UNIQUE   LLT_JOIN(FLLTAdaptedTest, __COUNTER__)

Definition at line 62 of file LowLevelTestAdapter.h.

◆ TEST_CASE_GENERATED_NAME_UNIQUE_STR

#define TEST_CASE_GENERATED_NAME_UNIQUE_STR   LLT_STR_EXPAND(TEST_CASE_GENERATED_NAME_UNIQUE)

Definition at line 65 of file LowLevelTestAdapter.h.

◆ TEST_CASE_NAMED

#define TEST_CASE_NAMED ( TClass,
StrName,
PrettyName,
TFlags )
Value:
namespace \
{ \
} \
void TClass::TestBody(const FString& Parameters)
#define LLT_JOIN(Prefix, Counter)
#define IMPLEMENT_SIMPLE_AUTOMATION_TEST_PRIVATE_LLT(TClass, PrettyName, TFlags, FileName, LineNumber)
#define TEXT(x)
Definition Platform.h:1108

Definition at line 53 of file LowLevelTestAdapter.h.