You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem this feature will solve
When we unit test, we want to check a single source file / function for issues by eliminating all dependencies. This is done by writing simple "mock" functions which are simple, known to work, and help us collect data about the code being tested. We use macros from Fake Function Framework to make mock-writing more convenient, but we still have to write out macros for all the functions we want mocked. This can be tedious and also means our mock files will quickly become outdated any time our code changes.
Describe the proposed solution
We could solve this problem by integrating an automatic mock generator which will use our header files to create mocks for us. Code for this already exists here https://github.com/ChiefGokhlayeh/autofff
Describe possible alternatives
Another alternative is to write our own script. The start of one has been written here, but it would still need to be improved and integrated into the workspace.
The text was updated successfully, but these errors were encountered:
Describe the problem this feature will solve
When we unit test, we want to check a single source file / function for issues by eliminating all dependencies. This is done by writing simple "mock" functions which are simple, known to work, and help us collect data about the code being tested. We use macros from Fake Function Framework to make mock-writing more convenient, but we still have to write out macros for all the functions we want mocked. This can be tedious and also means our mock files will quickly become outdated any time our code changes.
Describe the proposed solution
We could solve this problem by integrating an automatic mock generator which will use our header files to create mocks for us. Code for this already exists here https://github.com/ChiefGokhlayeh/autofff
Describe possible alternatives
Another alternative is to write our own script. The start of one has been written here, but it would still need to be improved and integrated into the workspace.
The text was updated successfully, but these errors were encountered: