DDraceNetwork Docs
teehistorian.cpp File Reference
#include <gtest/gtest.h>
#include <base/detect.h>
#include <engine/external/json-parser/json.h>
#include <engine/server.h>
#include <engine/shared/config.h>
#include <game/gamecore.h>
#include <game/server/teehistorian.h>
#include <vector>
#include <engine/shared/config_variables.h>
Include dependency graph for teehistorian.cpp:

Classes

class  TeeHistorian
 

Macros

#define MACRO_CONFIG_INT(Name, ScriptName, Def, Min, Max, Save, Desc)    m_Config.m_##Name = (Def);
 
#define MACRO_CONFIG_COL(Name, ScriptName, Def, Save, Desc)   MACRO_CONFIG_INT(Name, ScriptName, Def, 0, 0, Save, Desc)
 
#define MACRO_CONFIG_STR(Name, ScriptName, Len, Def, Save, Desc)    str_copy(m_Config.m_##Name, (Def), sizeof(m_Config.m_##Name));
 

Functions

void RegisterGameUuids (CUuidManager *pManager)
 
 TEST_F (TeeHistorian, Empty)
 
 TEST_F (TeeHistorian, Finished)
 
 TEST_F (TeeHistorian, TickImplicitOneTick)
 
 TEST_F (TeeHistorian, TickImplicitTwoTicks)
 
 TEST_F (TeeHistorian, TickImplicitDescendingClientId)
 
 TEST_F (TeeHistorian, TickExplicitAscendingClientId)
 
 TEST_F (TeeHistorian, TickImplicitEmpty)
 
 TEST_F (TeeHistorian, TickExplicitStart)
 
 TEST_F (TeeHistorian, TickExplicitPlayerMessage)
 
 TEST_F (TeeHistorian, ExtraMessage)
 
 TEST_F (TeeHistorian, DDNetVersion)
 
 TEST_F (TeeHistorian, Auth)
 
 TEST_F (TeeHistorian, JoinLeave)
 
 TEST_F (TeeHistorian, Input)
 
 TEST_F (TeeHistorian, SaveSuccess)
 
 TEST_F (TeeHistorian, SaveFailed)
 
 TEST_F (TeeHistorian, LoadSuccess)
 
 TEST_F (TeeHistorian, LoadFailed)
 
 TEST_F (TeeHistorian, PlayerSwap)
 
 TEST_F (TeeHistorian, PlayerTeam)
 
 TEST_F (TeeHistorian, TeamPractice)
 
 TEST_F (TeeHistorian, PlayerRejoinVer6)
 
 TEST_F (TeeHistorian, PlayerReady)
 
 TEST_F (TeeHistorian, PlayerReadyMultiple)
 
 TEST_F (TeeHistorian, AntibotEmpty)
 
 TEST_F (TeeHistorian, AntibotEmptyNulBytes)
 
 TEST_F (TeeHistorian, AntibotEmptyMessage)
 
 TEST_F (TeeHistorian, PlayerName)
 
 TEST_F (TeeHistorian, PlayerFinish)
 
 TEST_F (TeeHistorian, TeamFinish)
 
 TEST_F (TeeHistorian, PrevGameUuid)
 

Macro Definition Documentation

◆ MACRO_CONFIG_COL

#define MACRO_CONFIG_COL (   Name,
  ScriptName,
  Def,
  Save,
  Desc 
)    MACRO_CONFIG_INT(Name, ScriptName, Def, 0, 0, Save, Desc)

◆ MACRO_CONFIG_INT

#define MACRO_CONFIG_INT (   Name,
  ScriptName,
  Def,
  Min,
  Max,
  Save,
  Desc 
)     m_Config.m_##Name = (Def);

◆ MACRO_CONFIG_STR

#define MACRO_CONFIG_STR (   Name,
  ScriptName,
  Len,
  Def,
  Save,
  Desc 
)     str_copy(m_Config.m_##Name, (Def), sizeof(m_Config.m_##Name));

Function Documentation

◆ RegisterGameUuids()

void RegisterGameUuids ( CUuidManager pManager)

◆ TEST_F() [1/31]

TEST_F ( TeeHistorian  ,
AntibotEmpty   
)

◆ TEST_F() [2/31]

TEST_F ( TeeHistorian  ,
AntibotEmptyMessage   
)

◆ TEST_F() [3/31]

TEST_F ( TeeHistorian  ,
AntibotEmptyNulBytes   
)

◆ TEST_F() [4/31]

TEST_F ( TeeHistorian  ,
Auth   
)

◆ TEST_F() [5/31]

TEST_F ( TeeHistorian  ,
DDNetVersion   
)

◆ TEST_F() [6/31]

TEST_F ( TeeHistorian  ,
Empty   
)

◆ TEST_F() [7/31]

TEST_F ( TeeHistorian  ,
ExtraMessage   
)

◆ TEST_F() [8/31]

TEST_F ( TeeHistorian  ,
Finished   
)

◆ TEST_F() [9/31]

TEST_F ( TeeHistorian  ,
Input   
)

◆ TEST_F() [10/31]

TEST_F ( TeeHistorian  ,
JoinLeave   
)

◆ TEST_F() [11/31]

TEST_F ( TeeHistorian  ,
LoadFailed   
)

◆ TEST_F() [12/31]

TEST_F ( TeeHistorian  ,
LoadSuccess   
)

◆ TEST_F() [13/31]

TEST_F ( TeeHistorian  ,
PlayerFinish   
)

◆ TEST_F() [14/31]

TEST_F ( TeeHistorian  ,
PlayerName   
)

◆ TEST_F() [15/31]

TEST_F ( TeeHistorian  ,
PlayerReady   
)

◆ TEST_F() [16/31]

TEST_F ( TeeHistorian  ,
PlayerReadyMultiple   
)

◆ TEST_F() [17/31]

TEST_F ( TeeHistorian  ,
PlayerRejoinVer6   
)

◆ TEST_F() [18/31]

TEST_F ( TeeHistorian  ,
PlayerSwap   
)

◆ TEST_F() [19/31]

TEST_F ( TeeHistorian  ,
PlayerTeam   
)

◆ TEST_F() [20/31]

TEST_F ( TeeHistorian  ,
PrevGameUuid   
)

◆ TEST_F() [21/31]

TEST_F ( TeeHistorian  ,
SaveFailed   
)

◆ TEST_F() [22/31]

TEST_F ( TeeHistorian  ,
SaveSuccess   
)

◆ TEST_F() [23/31]

TEST_F ( TeeHistorian  ,
TeamFinish   
)

◆ TEST_F() [24/31]

TEST_F ( TeeHistorian  ,
TeamPractice   
)

◆ TEST_F() [25/31]

TEST_F ( TeeHistorian  ,
TickExplicitAscendingClientId   
)

◆ TEST_F() [26/31]

TEST_F ( TeeHistorian  ,
TickExplicitPlayerMessage   
)

◆ TEST_F() [27/31]

TEST_F ( TeeHistorian  ,
TickExplicitStart   
)

◆ TEST_F() [28/31]

TEST_F ( TeeHistorian  ,
TickImplicitDescendingClientId   
)

◆ TEST_F() [29/31]

TEST_F ( TeeHistorian  ,
TickImplicitEmpty   
)

◆ TEST_F() [30/31]

TEST_F ( TeeHistorian  ,
TickImplicitOneTick   
)

◆ TEST_F() [31/31]

TEST_F ( TeeHistorian  ,
TickImplicitTwoTicks   
)