SDL
2.0
|
#include <stdint.h>
#include <stdio.h>
#include <limits.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 | ) |
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 31 of file testautomation_sdltest.c.
References i, 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 61 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 1116 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 1203 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 1150 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 704 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 814 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 931 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 594 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 264 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 374 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 484 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 154 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 1041 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 85 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 1257 of file testautomation_sdltest.c.
|
static |
Definition at line 1284 of file testautomation_sdltest.c.
|
static |
Definition at line 1287 of file testautomation_sdltest.c.
|
static |
Definition at line 1290 of file testautomation_sdltest.c.
|
static |
Definition at line 1293 of file testautomation_sdltest.c.
|
static |
Definition at line 1296 of file testautomation_sdltest.c.
|
static |
Definition at line 1299 of file testautomation_sdltest.c.
|
static |
Definition at line 1260 of file testautomation_sdltest.c.
|
static |
Definition at line 1263 of file testautomation_sdltest.c.
|
static |
Definition at line 1266 of file testautomation_sdltest.c.
|
static |
Definition at line 1269 of file testautomation_sdltest.c.
|
static |
Definition at line 1272 of file testautomation_sdltest.c.
|
static |
Definition at line 1275 of file testautomation_sdltest.c.
|
static |
Definition at line 1278 of file testautomation_sdltest.c.
|
static |
Definition at line 1281 of file testautomation_sdltest.c.
|
static |
Definition at line 1303 of file testautomation_sdltest.c.
SDLTest_TestSuiteReference sdltestTestSuite |
Definition at line 1310 of file testautomation_sdltest.c.