Thanks for the answer, I accepted it. I will go with solution one. I would like to add, though, that even this doesn't seem to be ideal. I mean, yes you can do it this way, but this is not a mock. That means, you don't have any of the tracking functionality, like how many time the function was called, what args were passed etc. All the things mockall could do are missing. So using a real mock would ideal in my opinion, but this is also a valid solution and it works.
↧