Quantcast
Viewing latest article 30
Browse Latest Browse All 37

Comment by user2297996 on How to mock std::something in Rust?

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.

Viewing latest article 30
Browse Latest Browse All 37

Trending Articles