You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does FFF support having different mocks for a function in different tests (in the same test file)?
I tried mocking a function with various return values and it works great.
I added another test which added a custom fake (as output values are returned via argument pointers), but then the original tests failed.
I think I also got multiple definition errors, so I had to modify the code under test to have the weak attribute.
Just wondering if FFF can support multiple fakes per test and not have to modify the original source code under test.
Thanks, Brendan :)
The text was updated successfully, but these errors were encountered:
Does FFF support having different mocks for a function in different tests (in the same test file)?
I tried mocking a function with various return values and it works great.
I added another test which added a custom fake (as output values are returned via argument pointers), but then the original tests failed.
I think I also got multiple definition errors, so I had to modify the code under test to have the weak attribute.
Just wondering if FFF can support multiple fakes per test and not have to modify the original source code under test.
Thanks, Brendan :)
The text was updated successfully, but these errors were encountered: