|
nx_metadata_sdk
1.0
Metadata SDK
|
#include <iostream>#include <fstream>#include <cstring>#include <ctime>#include <nx/kit/test.h>#include <nx/kit/ini_config.h>#include <nx/kit/debug.h>Classes | |
| struct | TestIni |
| struct | SavedIni |
Enumerations | |
| enum | Output { silent, verbose } |
Functions | |
| static TestIni & | ini () |
| template<class ExpectedIni , class ActualIni > | |
| static void | assertIniEquals (int line, const ExpectedIni &expected, const ActualIni &actual) |
| void | generateIniFile (const SavedIni &ini) |
| template<class ExpectedIni > | |
| static void | testReload (int line, Output reloadOutput, const ExpectedIni &expectedIni, const char *caseTitle) |
| TEST (iniConfig, test) | |
Variables | |
| static constexpr char | kIniFile [] = "test.ini" |
| static const TestIni | defaultIni |
NOTE: Intended to be compiled twice - both with and without -DNX_INI_CONFIG_DISABLED. This is needed to test ini_config in both Enabled and Disabled modes. To avoid symbol clashing, one or both of the two compilations should produce a dynamic library.
| void generateIniFile | ( | const SavedIni & | ini | ) |
Create a .ini file with the contents from the supplied IniConfig object.
1.8.14