Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
testframework.c File Reference

Go to the source code of this file.

Data Structures

class  array
 Result for an object found in CGame.IsBoxCollidingGeometryProxy. More...
class  TFModule

Typedefs

typedef array< ref TFResultTFResultArr

Enumerations

enum  TFR { FAIL = -1 , SUCCESS , PENDING }

Functions

void ~TestFramework ()
void AddFrameTest (string test)
void AddInitTest (string test)
TFResult And (TFResult other)
bool Assert (bool condition)
TFResult BTFR (bool result)
TFResult CTFR ()
override void EOnFrame (IEntity other, float timeSlice)
override void EOnInit (IEntity other, int extra)
TFResult NTFR (TFR result)
TFResult Or (TFResult other)
void TestFramework ()
void TFResult (TFR result)

Variables

ref TFModule m_OnFrameModule
class TFModule m_OnInitModule
 Test Framework.
enum TFR Result

Typedef Documentation

◆ TFResultArr

typedef array<ref TFResult> TFResultArr

Definition at line 43 of file testframework.c.

Enumeration Type Documentation

◆ TFR

enum TFR
Enumerator
FAIL 
SUCCESS 
PENDING 

Definition at line 1 of file testframework.c.

Function Documentation

◆ ~TestFramework()

void ~TestFramework ( )
private

Definition at line 226 of file testframework.c.

References m_OnFrameModule, and m_OnInitModule.

◆ AddFrameTest()

◆ AddInitTest()

◆ And()

TFResult And ( TFResult other)

Definition at line 17 of file testframework.c.

References ErrorEx, Result, and TFResult().

◆ Assert()

◆ BTFR()

◆ CTFR()

TFResult CTFR ( )
protected

Definition at line 286 of file testframework.c.

References TFResult().

Referenced by TestCleanup(), and TestMultiCreation().

◆ EOnFrame()

override void EOnFrame ( IEntity other,
float timeSlice )
protected

Definition at line 240 of file testframework.c.

References CALL_CATEGORY_SYSTEM, g_Game, and m_OnFrameModule.

◆ EOnInit()

override void EOnInit ( IEntity other,
int extra )
protected

Definition at line 235 of file testframework.c.

References m_OnInitModule.

◆ NTFR()

◆ Or()

TFResult Or ( TFResult other)

Definition at line 30 of file testframework.c.

References ErrorEx, Result, and TFResult().

◆ TestFramework()

void TestFramework ( )
private

Definition at line 217 of file testframework.c.

References m_OnFrameModule, and m_OnInitModule.

Referenced by TFModule::PrintResult(), Sleep2(), and Debug::TFLog().

◆ TFResult()

Variable Documentation

◆ m_OnFrameModule

ref TFModule m_OnFrameModule
private

Definition at line 215 of file testframework.c.

Referenced by ~TestFramework(), AddFrameTest(), EOnFrame(), and TestFramework().

◆ m_OnInitModule

class TFModule m_OnInitModule

Test Framework.

Referenced by ~TestFramework(), AddInitTest(), EOnInit(), and TestFramework().

◆ Result

enum TFR Result

Referenced by And(), Or(), and TFResult().