mercredi 30 mars 2016

How to mock method returning istream&?

I have mocked virtual method returning istream&. I'd like to use it in a testcase. How to return some value?

The problem is that istream is noncopyable.

Aucun commentaire:

Enregistrer un commentaire