Closed CodeSandwich closed 5 years ago
Had a look into that crate and to realize, it does not provide thread safety at the moment. Tracking issue: https://github.com/mehcode/guerrilla/issues/10
It could be solved like in Mockito: mocking anything silently obtains a mutex making tests using them run non-parallel.
But there is an even worse problem: patching temporarily destroys patched function. I don't have any idea how to implement behavior on MockResult::Continue
.
https://github.com/mehcode/guerrilla