cmockery
cmockery copied to clipboard
A lightweight library to simplify and generalize the process of writing unit tests for C applications.
0.1.2 has a known issue with MacOS, which was reported in issue #3 and exemplified in the [Homebrew config][homebrew-cmockery]. We should (finally) release 0.1.3 to enable us to cleanup the...
Lines 1226 and 1236 of cmockery.c should not be the same. :)
When I try to call will_return with a pointer paremeter on a 64bit linux platform. mock fucntion return another value which losses the high 32bit of the origin value. `int...
When I test a software whose code is based on cmockery. The software is greenplum database. The genarated file is ~/src/gpdb$ vi src/test/unit/mock/backend/libpq/pqexpbuffer_mock.c bool appendPQExpBufferVA(PQExpBuffer str, const char * fmt,...
This change add scripts to generate `user_guide.md` automatically from special markers that are now visible in the source file `user_guide.md.in`. This allows us to easily keep the source code up-to-date...
release-0.1.2 there is not a vsvars.bat scripts for windows build
Right now, [`README.md`][readme] includes copy-pasted code from sample code in [`src/example/`][src/example] tree, but they're not kept in-sync automatically. Ideally, we would have a process for automatically including code samples, e.g.,...
``` Below is a patch to allow building of cmockery outside of the source directory. It has been tested against subversion trunk, and passes 'make distcheck'. Signed-off-by: Chris Heller ---...
_test_malloc ironically suffers from a painfully obvious size_t overflow when calculating allocate_size. a simple assert_true(allocate_size > size) should fix this.
If we pass an invalid pointer to _test_free() function, this function will be crashed. So I update this function, add some checking code. Therefore, cmockery can test cases that free...