SDL
2.0
|
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <float.h>
#include <ctype.h>
#include "SDL.h"
#include "SDL_test.h"
Go to the source code of this file.
Variables | |
static const SDLTest_TestCaseReference | sdltestTest1 |
static const SDLTest_TestCaseReference | sdltestTest2 |
static const SDLTest_TestCaseReference | sdltestTest3 |
static const SDLTest_TestCaseReference | sdltestTest4 |
static const SDLTest_TestCaseReference | sdltestTest5 |
static const SDLTest_TestCaseReference | sdltestTest6 |
static const SDLTest_TestCaseReference | sdltestTest7 |
static const SDLTest_TestCaseReference | sdltestTest8 |
static const SDLTest_TestCaseReference | sdltestTest9 |
static const SDLTest_TestCaseReference | sdltestTest10 |
static const SDLTest_TestCaseReference | sdltestTest11 |
static const SDLTest_TestCaseReference | sdltestTest12 |
static const SDLTest_TestCaseReference | sdltestTest13 |
static const SDLTest_TestCaseReference | sdltestTest14 |
static const SDLTest_TestCaseReference | sdltestTest15 |
static const SDLTest_TestCaseReference * | sdltestTests [] |
SDLTest_TestSuiteReference | sdltestTestSuite |
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).
SDL_test test suite
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 |
Definition at line 54 of file SDL_test_harness.c.
References NULL, SDL_ENOMEM, SDL_Error, SDL_malloc, SDLTest_LogError(), SDLTest_Random(), and SDLTest_RandomInitTime().
Referenced by sdltest_generateRunSeed(), and SDLTest_RunSuites().
int sdltest_generateRunSeed | ( | void * | arg | ) |
Calls to SDLTest_GenerateRunSeed()
Definition at line 34 of file testautomation_sdltest.c.
References i, j, NULL, SDL_free, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_GenerateRunSeed(), and TEST_COMPLETED.
int sdltest_getFuzzerInvocationCount | ( | void * | arg | ) |
Calls to SDLTest_GetFuzzerInvocationCount()
Definition at line 65 of file testautomation_sdltest.c.
References SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_GetFuzzerInvocationCount(), SDLTest_RandomUint8(), and TEST_COMPLETED.
int sdltest_randomAsciiString | ( | void * | arg | ) |
Calls to SDLTest_RandomAsciiString.
Definition at line 1120 of file testautomation_sdltest.c.
References i, NULL, SDL_free, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_LogError(), SDLTest_RandomAsciiString(), and TEST_COMPLETED.
int sdltest_randomAsciiStringOfSize | ( | void * | arg | ) |
Calls to SDLTest_RandomAsciiStringOfSize.
Definition at line 1207 of file testautomation_sdltest.c.
References i, NULL, SDL_ClearError, SDL_free, SDL_GetError, SDL_strcmp, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_LogError(), SDLTest_RandomAsciiStringOfSize(), SDLTest_RandomUint8(), and TEST_COMPLETED.
int sdltest_randomAsciiStringWithMaximumLength | ( | void * | arg | ) |
Calls to SDLTest_RandomAsciiStringWithMaximumLength.
Definition at line 1154 of file testautomation_sdltest.c.
References i, NULL, SDL_ClearError, SDL_free, SDL_GetError, SDL_strcmp, SDL_strlen, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_LogError(), SDLTest_RandomAsciiStringWithMaximumLength(), SDLTest_RandomUint8(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberSint16 | ( | void * | arg | ) |
Definition at line 708 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomSint16BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberSint32 | ( | void * | arg | ) |
Definition at line 818 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomSint32BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberSint64 | ( | void * | arg | ) |
Definition at line 935 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomSint64BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberSint8 | ( | void * | arg | ) |
Definition at line 598 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomSint8BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberUint16 | ( | void * | arg | ) |
Definition at line 268 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomUint16BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberUint32 | ( | void * | arg | ) |
Definition at line 378 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomUint32BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberUint64 | ( | void * | arg | ) |
Definition at line 488 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomUint64BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomBoundaryNumberUint8 | ( | void * | arg | ) |
Definition at line 158 of file testautomation_sdltest.c.
References NULL, SDL_ClearError, SDL_FALSE, SDL_GetError, SDL_PRIs64, SDL_strcmp, SDL_TRUE, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomUint8BoundaryValue(), and TEST_COMPLETED.
int sdltest_randomIntegerInRange | ( | void * | arg | ) |
Calls to SDLTest_RandomIntegerInRange.
Definition at line 1045 of file testautomation_sdltest.c.
References SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomIntegerInRange(), SDLTest_RandomSint16(), SDLTest_RandomUint8(), and TEST_COMPLETED.
int sdltest_randomNumber | ( | void * | arg | ) |
Calls to random number generators.
Definition at line 89 of file testautomation_sdltest.c.
References SDL_PRIs64, SDL_PRIu64, SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_RandomDouble(), SDLTest_RandomFloat(), SDLTest_RandomSint16(), SDLTest_RandomSint32(), SDLTest_RandomSint64(), SDLTest_RandomSint8(), SDLTest_RandomUint16(), SDLTest_RandomUint32(), SDLTest_RandomUint64(), SDLTest_RandomUint8(), SDLTest_RandomUnitDouble(), SDLTest_RandomUnitFloat(), and TEST_COMPLETED.
|
static |
Definition at line 1261 of file testautomation_sdltest.c.
|
static |
Definition at line 1288 of file testautomation_sdltest.c.
|
static |
Definition at line 1291 of file testautomation_sdltest.c.
|
static |
Definition at line 1294 of file testautomation_sdltest.c.
|
static |
Definition at line 1297 of file testautomation_sdltest.c.
|
static |
Definition at line 1300 of file testautomation_sdltest.c.
|
static |
Definition at line 1303 of file testautomation_sdltest.c.
|
static |
Definition at line 1264 of file testautomation_sdltest.c.
|
static |
Definition at line 1267 of file testautomation_sdltest.c.
|
static |
Definition at line 1270 of file testautomation_sdltest.c.
|
static |
Definition at line 1273 of file testautomation_sdltest.c.
|
static |
Definition at line 1276 of file testautomation_sdltest.c.
|
static |
Definition at line 1279 of file testautomation_sdltest.c.
|
static |
Definition at line 1282 of file testautomation_sdltest.c.
|
static |
Definition at line 1285 of file testautomation_sdltest.c.
|
static |
Definition at line 1307 of file testautomation_sdltest.c.
SDLTest_TestSuiteReference sdltestTestSuite |
Definition at line 1314 of file testautomation_sdltest.c.