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.
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.