summaryrefslogtreecommitdiff
path: root/test/vendor/ceedling/plugins/fake_function_framework/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-12-08 09:59:02 +0700
committerhathach <[email protected]>2022-12-08 09:59:02 +0700
commitbe4f4e4f79c2342bda3b42653332129332a58d0b (patch)
tree82e98d2139421836e1120c364358e8cf59d51f8e /test/vendor/ceedling/plugins/fake_function_framework/src
parent4b50ca2a6167ceb7eb3e07b8d1d716152fc7d189 (diff)
move ceedling tests to test/unit-test
Diffstat (limited to 'test/vendor/ceedling/plugins/fake_function_framework/src')
-rw-r--r--test/vendor/ceedling/plugins/fake_function_framework/src/fff_unity_helper.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/vendor/ceedling/plugins/fake_function_framework/src/fff_unity_helper.h b/test/vendor/ceedling/plugins/fake_function_framework/src/fff_unity_helper.h
deleted file mode 100644
index de3db44aa..000000000
--- a/test/vendor/ceedling/plugins/fake_function_framework/src/fff_unity_helper.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef fff_unity_helper_H
-#define fff_unity_helper_H
-
-/*
- FFF helper macros for Unity.
-*/
-
-/*
- Fail if the function was not called the expected number of times.
-*/
-#define TEST_ASSERT_CALLED_TIMES(times_, function_) \
- TEST_ASSERT_EQUAL_MESSAGE(times_, \
- function_ ## _fake.call_count, \
- "Function " #function_ " called the incorrect number of times.")
-/*
- Fail if the function was not called exactly once.
-*/
-#define TEST_ASSERT_CALLED(function_) TEST_ASSERT_CALLED_TIMES(1, function_)
-
-/*
- Fail if the function was called 1 or more times.
-*/
-#define TEST_ASSERT_NOT_CALLED(function_) TEST_ASSERT_CALLED_TIMES(0, function_)
-
-/*
- Fail if the function was not called in this particular order.
-*/
-#define TEST_ASSERT_CALLED_IN_ORDER(order_, function_) \
- TEST_ASSERT_EQUAL_PTR_MESSAGE((void *) function_, \
- fff.call_history[order_], \
- "Function " #function_ " not called in order " #order_ )
-
-#endif \ No newline at end of file