@@ -150,15 +150,6 @@ extern "C" {
150150#define FOSSIL_TEARDOWN (name ) \
151151 _FOSSIL_TEST_TEARDOWN(name)
152152
153- /**
154- * Macro to define test data.
155- * This macro is used to declare a structure that contains the data required
156- * for a test case. The test data structure can be used to pass input parameters
157- * to the test case and store the expected output values.
158- */
159- #define FOSSIL_TEST_DATA (name ) \
160- _FOSSIL_TEST_DATA(name)
161-
162153/**
163154 * Macro to define a test case.
164155 * This macro is used to declare a test case function that will be executed
@@ -168,6 +159,14 @@ extern "C" {
168159#define FOSSIL_TEST_CASE (name ) \
169160 _FOSSIL_TEST_CASE(name)
170161
162+ /**
163+ * Macro to skip a test case.
164+ * This macro is used to skip a test case in the test runner. The test case will
165+ * be marked as skipped, and the specified message will be output to the console.
166+ */
167+ #define FOSSIL_TEST_SKIP (test_name , message ) \
168+ _FOSSIL_TEST_SKIP(test_name, message)
169+
171170/**
172171 * Macro to assume a condition in a test runner.
173172 * This macro is used to assert that a specific condition is true within a test
@@ -264,16 +263,16 @@ extern "C" {
264263
265264/**
266265 * @def FOSSIL_MOCK_STRUCT
266+ *
267267 * @brief Macro for creating a mock struct with the specified name and members.
268- *
268+ *
269269 * This macro simplifies the creation of mock structs by defining a struct with the given name
270270 * and members. The struct name will be prefixed with "fossil_mockup_" to clearly indicate that it is a mock struct.
271- *
271+ *
272272 * @param name The name of the mock struct.
273- * @param ... The members of the mock struct in the format: (type1 member1, type2 member2, ...).
274273 */
275- #define FOSSIL_MOCK_STRUCT (name , ... ) \
276- _FOSSIL_MOCK_STRUCT(name, __VA_ARGS__ )
274+ #define FOSSIL_MOCK_STRUCT (name ) \
275+ _FOSSIL_MOCK_STRUCT(name)
277276
278277// *****************************************************************************
279278// Benchmark framework
@@ -288,8 +287,7 @@ extern "C" {
288287 * @param name The name of the benchmark.
289288 */
290289#define MARK_BENCHMARK (name ) \
291- fossil_benchmark_t benchmark_##name; \
292- fossil_benchmark_init(&benchmark_##name, #name)
290+ _MARK_BENCHMARK(name)
293291
294292/**
295293 * @brief Define macro for starting a benchmark.
@@ -300,7 +298,7 @@ extern "C" {
300298 * @param name The name of the benchmark.
301299 */
302300#define MARK_START (name ) \
303- fossil_benchmark_start(&benchmark_## name)
301+ _MARK_START( name)
304302
305303/**
306304 * @brief Define macro for stopping a benchmark.
@@ -311,7 +309,7 @@ extern "C" {
311309 * @param name The name of the benchmark.
312310 */
313311#define MARK_STOP (name ) \
314- fossil_benchmark_stop(&benchmark_## name)
312+ _MARK_STOP( name)
315313
316314/**
317315 * @brief Define macro for reporting a benchmark.
@@ -322,7 +320,7 @@ extern "C" {
322320 * @param name The name of the benchmark.
323321 */
324322#define MARK_REPORT (name ) \
325- fossil_benchmark_report(&benchmark_## name)
323+ _MARK_REPORT( name)
326324
327325/**
328326 * @brief Define macro for scoped benchmarking.
@@ -334,8 +332,7 @@ extern "C" {
334332 * @param name The name of the benchmark.
335333 */
336334#define MARK_SCOPED (name ) \
337- scoped_benchmark_t scoped_benchmark_##name; \
338- fossil_scoped_benchmark_init(&scoped_benchmark_##name, &benchmark_##name)
335+ _MARK_SCOPED(name)
339336
340337// =================================================================
341338// Bench specific commands
0 commit comments