I need unit test some C ++ objects that I wrote that use a third-party C library. For reasons beyond the scope of this question, I cannot directly call a third-party C library, and you need to drown it for a set of tests.
For other parts of our unit test googlemock , we use googlemock , but I don't think it can be used for C libraries. I can finish the library manually, but I donβt prefer (partly because of laziness (its quite large), but mainly because it is only a matter of principles).
So, here is my question: is there a tool that generates encoded code based on the C library header file? As soon as I get the code, I will make some small mods, and then I will contact him for unit testing.
source share