ElectronVector / fake_function_framework

A plug-in for Ceedling to use the Fake Function Framework (fff) for mocking instead of Cmock.
MIT License
36 stars 13 forks source link

Mock inline functions #20

Open thomasfinchbr opened 4 years ago

thomasfinchbr commented 4 years ago

Hi,

I am using ceedling (Version 0.30.0) and the fff plugin. I would like to write unit test for functions defined as inline, using this cmok option: treat_inlines

Cmock documentation explain that the header file with the inline function will be duplicated, and this one will be include instead of the one with the original functions. This works when not using fff, but when I use this plugin the duplicate file is not generated anymore.

Has anyone an idea what could be the problem.

Thanks.