Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: How to pass closure for mocking async call?
So that I can unit test an async call that's expensive, how can I pass the function so that my unit tests can mock it?
Here's what I have nearly working, except the argument reference causes lifetime issues I am beyond confused with:
2 posts - 2 participants
🏷️ rust_feed