mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-10-25 01:53:34 +00:00
CMock names a mock's include guard and its Init, Verify and Destroy functions by the mock's filename alone. Two mocks sharing a filename in different folders therefore share a guard and define the same symbols. With :mock_name_include_folder enabled the generator folds the folder a mock is generated into below :mock_path into that name, so a mock of config.h in uart/ becomes uart_Mockconfig. The option defaults to off and leaves existing mocks unchanged. Unity's test runner generator gains a matching option, and vendor/unity moves to that commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>