GLib Mock (Mocking framework for unit testing)
Version 0.1.0 released! This would be the first one! it features:
- Fully functional mocking framework, with functions for adding mocks, getting real implementations, and of course boilerplate functions for initialization and committing mock functions.
- Various examples in
tests/directory on both UNIX-like (Linux/macOS) and Win32 platforms. - Fully compatible with Meson build system, the project can be added as a subproject.
- Fully open-source, open-to-collabarations.
- GLib-style documentation here
As a separate subject, would like to gently ask to @pwithnall and @lb90, how is the process to introduce this project into the GLib test cases? (not as part of the library), it may be started as an experiment into the Win32 testing code mainly focusing on mocking WinAPI functions, since on that platform is very hard to do mocking, but hopefully if this abstraction is good, make it into the other platforms as well as needed (it of course would be opt-in if a test case decide to use it).