mirror of
https://github.com/meekrosoft/fff
synced 2026-01-29 19:24:28 +01:00
Renamed to fff and added function call history
This commit is contained in:
25
README
25
README
@@ -1,10 +1,25 @@
|
||||
Fake Function Framework (fff)
|
||||
-----------------------------
|
||||
|
||||
cmock is a micro-framework for creating fake C functions for tests.
|
||||
fff is a micro-framework for creating fake C functions for tests.
|
||||
|
||||
Here are some cmock truths:
|
||||
* It maintains a call count and will capture the arguments sent
|
||||
* It can be used in C or C++ tests
|
||||
So whats the point?
|
||||
* To make it easy to create fake functions for testing C code.
|
||||
* To be simple
|
||||
* To work in both C and C++ tests
|
||||
|
||||
What can it do?
|
||||
* It maintains a call count for each fake function
|
||||
* It captures the arguments sent in each function call
|
||||
* It captures a call history
|
||||
* It is simple - just include a header file and you are good to go.
|
||||
|
||||
What I'd like to add:
|
||||
Under the hood:
|
||||
* The fff.h header file is generated by a ruby script
|
||||
* There are tests under src/test
|
||||
* There are examples for testing an embedded UI under src/examples
|
||||
|
||||
Still Todo:
|
||||
* Function argument history
|
||||
* Proper mock - setting expectations, etc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user