simple_test_driver
- Function
- April 17, 2026
Table of Contents
simple_test_driver
simple_test_driverDescription
Run an array of simple test functions.
Parameters
| Name | Direction | Description |
|---|---|---|
tests | in | Array of test function pointers. |
count | in | Number of tests in the array. |
Success
Returns number of failed tests (0 = all passed).
Failure
Function cannot fail - always returns valid count.
Usage example (Cross-references)
- In
TestRunner.c:74:
/// Run an array of simple tests
int simple_test_driver(TestFunction *tests, int count) {
if (!tests) {
WriteFmt("[ERROR] simple_test_driver: NULL tests array provided\n");
- In
TestRunner.c:76:
int simple_test_driver(TestFunction *tests, int count) {
if (!tests) {
WriteFmt("[ERROR] simple_test_driver: NULL tests array provided\n");
return count; // All tests failed
}
- In
TestRunner.c:147:
// Run normal tests if any
if (normal_tests && normal_count > 0) {
int failed = simple_test_driver(normal_tests, normal_count);
total_failed += failed;
}