1
0
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:
Mike Long
2010-12-21 22:35:16 +01:00
parent 98cde86ef8
commit e4ffef00fc
5 changed files with 97 additions and 20 deletions

25
README
View File

@@ -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