Example of PicoTest hierarchy traversal, prints traversed tests to stdout.
#include <stdio.h>
void printTestCase(const char *name, int nb) {
if (nb == 0) printf("%s\n", name);
}
void printTestName(const char *name, int nb) {
printf("%s\n", name);
}
void main() {
printf("Print all test cases:\n");
printf("\n");
printf("Print all tests:\n");
printf("\n");
printf("Print all tests under subSuite:\n");
printf("\n");
printf("Print individual test cases:\n");
printf("\n");
}
void PicoTestTraverseProc(const char *name, int nb)
Function signature of test traversal proc.
Definition picotest.h:299
#define PICOTEST_TRAVERSE(_testName, _proc)
Traverse a test hierarchy depth-first.
Definition picotest.h:317
Example of a simple PicoTest suite.
This file defines a minimalist unit testing framework for C programs.