Cmockery is a testing and mocking library for C.
Cmockery only requires linking with the C library; it does not require use of C++ or a C++ compiler or any advanced or recent features of the C language, thus making it portable and usable in many situations, e.g., testing embedded code.