DDraceNetwork Docs
|
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <base/detect.h>
#include <engine/server/databases/connection.h>
#include <engine/server/databases/connection_pool.h>
#include <engine/shared/config.h>
#include <game/server/scoreworker.h>
#include <sqlite3.h>
Classes | |
struct | Score |
struct | SingleScore |
struct | TeamScore |
struct | MapInfo |
struct | MapVote |
struct | Points |
struct | RandomMap |
Macros | |
#define | INSTANTIATE(SUITE) |
Functions | |
TEST (SQLite, Version) | |
TEST_P (SingleScore, TopRegional) | |
TEST_P (SingleScore, Top) | |
TEST_P (SingleScore, RankRegional) | |
TEST_P (SingleScore, Rank) | |
TEST_P (SingleScore, TopServerRegional) | |
TEST_P (SingleScore, TopServer) | |
TEST_P (SingleScore, RankServerRegional) | |
TEST_P (SingleScore, RankServer) | |
TEST_P (SingleScore, LoadPlayerData) | |
TEST_P (SingleScore, TimesExists) | |
TEST_P (SingleScore, TimesDoesntExist) | |
TEST_P (TeamScore, All) | |
TEST_P (TeamScore, TeamTop5Regional) | |
TEST_P (TeamScore, PlayerExists) | |
TEST_P (TeamScore, PlayerDoesntExist) | |
TEST_P (TeamScore, RankUpdates) | |
TEST_P (MapInfo, ExactNoFinish) | |
TEST_P (MapInfo, ExactFinish) | |
TEST_P (MapInfo, Fuzzy) | |
TEST_P (MapInfo, DoesntExit) | |
TEST_P (MapVote, Exact) | |
TEST_P (MapVote, Fuzzy) | |
TEST_P (MapVote, DoesntExist) | |
TEST_P (Points, NoPoints) | |
TEST_P (Points, NoPointsTop) | |
TEST_P (Points, OnePoints) | |
TEST_P (Points, OnePointsTop) | |
TEST_P (Points, TwoPoints) | |
TEST_P (Points, TwoPointsTop) | |
TEST_P (Points, EqualPoints) | |
TEST_P (Points, EqualPointsTop) | |
TEST_P (RandomMap, NoStars) | |
TEST_P (RandomMap, StarsExists) | |
TEST_P (RandomMap, StarsDoesntExist) | |
TEST_P (RandomMap, UnfinishedExists) | |
TEST_P (RandomMap, UnfinishedDoesntExist) | |
INSTANTIATE_TEST_SUITE_P (Sql, SingleScore, g_TestValues, [](const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} }) | |
INSTANTIATE_TEST_SUITE_P (Sql, TeamScore, g_TestValues, [](const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} }) | |
INSTANTIATE_TEST_SUITE_P (Sql, MapInfo, g_TestValues, [](const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} }) | |
INSTANTIATE_TEST_SUITE_P (Sql, MapVote, g_TestValues, [](const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} }) | |
INSTANTIATE_TEST_SUITE_P (Sql, Points, g_TestValues, [](const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} }) | |
INSTANTIATE_TEST_SUITE_P (Sql, RandomMap, g_TestValues, [](const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} }) | |
Variables | |
auto | g_pSqliteConn = CreateSqliteConnection(":memory:", true) |
auto | g_TestValues |
#define INSTANTIATE | ( | SUITE | ) |
INSTANTIATE_TEST_SUITE_P | ( | Sql | , |
MapInfo | , | ||
g_TestValues | , | ||
[] (const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} } | |||
) |
INSTANTIATE_TEST_SUITE_P | ( | Sql | , |
MapVote | , | ||
g_TestValues | , | ||
[] (const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} } | |||
) |
INSTANTIATE_TEST_SUITE_P | ( | Sql | , |
Points | , | ||
g_TestValues | , | ||
[] (const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} } | |||
) |
INSTANTIATE_TEST_SUITE_P | ( | Sql | , |
RandomMap | , | ||
g_TestValues | , | ||
[] (const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} } | |||
) |
INSTANTIATE_TEST_SUITE_P | ( | Sql | , |
SingleScore | , | ||
g_TestValues | , | ||
[] (const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} } | |||
) |
INSTANTIATE_TEST_SUITE_P | ( | Sql | , |
TeamScore | , | ||
g_TestValues | , | ||
[] (const testing::TestParamInfo< Score::ParamType > &Info) { switch(Info.index) { case 0:return "SQLite";case 1:return "MySQL";default:return "Unknown";} } | |||
) |
TEST | ( | SQLite | , |
Version | |||
) |
TEST_P | ( | MapInfo | , |
DoesntExit | |||
) |
TEST_P | ( | MapInfo | , |
ExactFinish | |||
) |
TEST_P | ( | MapInfo | , |
ExactNoFinish | |||
) |
TEST_P | ( | MapInfo | , |
Fuzzy | |||
) |
TEST_P | ( | MapVote | , |
DoesntExist | |||
) |
TEST_P | ( | MapVote | , |
Exact | |||
) |
TEST_P | ( | MapVote | , |
Fuzzy | |||
) |
TEST_P | ( | Points | , |
EqualPoints | |||
) |
TEST_P | ( | Points | , |
EqualPointsTop | |||
) |
TEST_P | ( | Points | , |
NoPoints | |||
) |
TEST_P | ( | Points | , |
NoPointsTop | |||
) |
TEST_P | ( | Points | , |
OnePoints | |||
) |
TEST_P | ( | Points | , |
OnePointsTop | |||
) |
TEST_P | ( | Points | , |
TwoPoints | |||
) |
TEST_P | ( | Points | , |
TwoPointsTop | |||
) |
TEST_P | ( | RandomMap | , |
NoStars | |||
) |
TEST_P | ( | RandomMap | , |
StarsDoesntExist | |||
) |
TEST_P | ( | RandomMap | , |
StarsExists | |||
) |
TEST_P | ( | RandomMap | , |
UnfinishedDoesntExist | |||
) |
TEST_P | ( | RandomMap | , |
UnfinishedExists | |||
) |
TEST_P | ( | SingleScore | , |
LoadPlayerData | |||
) |
TEST_P | ( | SingleScore | , |
Rank | |||
) |
TEST_P | ( | SingleScore | , |
RankRegional | |||
) |
TEST_P | ( | SingleScore | , |
RankServer | |||
) |
TEST_P | ( | SingleScore | , |
RankServerRegional | |||
) |
TEST_P | ( | SingleScore | , |
TimesDoesntExist | |||
) |
TEST_P | ( | SingleScore | , |
TimesExists | |||
) |
TEST_P | ( | SingleScore | , |
Top | |||
) |
TEST_P | ( | SingleScore | , |
TopRegional | |||
) |
TEST_P | ( | SingleScore | , |
TopServer | |||
) |
TEST_P | ( | SingleScore | , |
TopServerRegional | |||
) |
TEST_P | ( | TeamScore | , |
All | |||
) |
TEST_P | ( | TeamScore | , |
PlayerDoesntExist | |||
) |
TEST_P | ( | TeamScore | , |
PlayerExists | |||
) |
TEST_P | ( | TeamScore | , |
RankUpdates | |||
) |
TEST_P | ( | TeamScore | , |
TeamTop5Regional | |||
) |
auto g_pSqliteConn = CreateSqliteConnection(":memory:", true) |
auto g_TestValues |