Why Nostr? What is Njump?
2024-01-26 07:24:01

Dan Jacob on Nostr: #rust people: what is best practice (with libraries or whatever) for mocking in ...

#rust people: what is best practice (with libraries or whatever) for mocking in tests?

Case in point: I want to test handling different responses from an HTTP request, using local files to provide mocked XML/RSS documents. I currently use reqwest. Would be good to be able to test e.g. a 404 or 500 response or different XML payloads.
Author Public Key
npub1mczychxqy005cu0uur4jp4jjzrjldnx5q22se0z09jmn7s8kh0pqjjdr5f