mercredi 20 mars 2019

Is there any mocking framework that allows to mock std::ifstream and other I/O libraries?

I work on a really old C++ project which has a huge DB I need to mock. I am trying to mock ifstream library in order to test the control on files, the problem is that I can't change my legacy code so i am having a hard time finding the abilty to mock without changing any piece of the code Thanks in advance

Aucun commentaire:

Enregistrer un commentaire