Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 457 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 457 Bytes

mock-me

Bare C function mocking utility. This is currently a work in progress and only works in very specific scenarios.

Building

This project uses CMake to generate supported native build files.

  • cmake .
  • cmake --build . --config Debug

Using

The main.cp shows a few examples, but basically something like this:

FunctionMocker mocker(testFunc, mockFunc);
testFunc(); // Will call mockFunc() instead