World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
struct | SDLTest_TestCaseReference |
struct | SDLTest_TestSuiteReference |
Определения типов | |
typedef void(* | SDLTest_TestCaseSetUpFp) (void *arg) |
typedef int(* | SDLTest_TestCaseFp) (void *arg) |
typedef void(* | SDLTest_TestCaseTearDownFp) (void *arg) |
typedef struct SDLTest_TestCaseReference | SDLTest_TestCaseReference |
typedef struct SDLTest_TestSuiteReference | SDLTest_TestSuiteReference |
Функции | |
char * | SDLTest_GenerateRunSeed (const int length) |
Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z). Подробнее... | |
int | SDLTest_RunSuites (SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations) |
Execute a test suite using the given run seed and execution key. Подробнее... | |
Include file for SDL test framework.
This code is a part of the SDL2_test library, not the main SDL library.
См. определение в файле SDL_test_harness.h
См. определение в файле SDL_test_harness.h строка 64
typedef int(* SDLTest_TestCaseFp) (void *arg) |
См. определение в файле SDL_test_harness.h строка 67
См. определение в файле SDL_test_harness.h строка 70
typedef struct SDLTest_TestCaseReference SDLTest_TestCaseReference |
Holds information about a single test case.
typedef struct SDLTest_TestSuiteReference SDLTest_TestSuiteReference |
Holds information about a test suite (multiple test cases).
char* SDLTest_GenerateRunSeed | ( | const int | length | ) |
Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z).
Note: The returned string needs to be deallocated by the caller.
length | The length of the seed string to generate |
int SDLTest_RunSuites | ( | SDLTest_TestSuiteReference * | testSuites[], |
const char * | userRunSeed, | ||
Uint64 | userExecKey, | ||
const char * | filter, | ||
int | testIterations | ||
) |
Execute a test suite using the given run seed and execution key.
testSuites | Suites containing the test case. |
userRunSeed | Custom run seed provided by user, or NULL to autogenerate one. |
userExecKey | Custom execution key provided by user, or 0 to autogenerate one. |
filter | Filter specification. NULL disables. Case sensitive. |
testIterations | Number of iterations to run each test case. |