Comments (2)
You can try https://godoc.org/github.com/jarcoal/httpmock#NewErrorResponder with the appropriate error?
from httpmock.
Closing. Reopen if you didn't succeed in your quest.
from httpmock.
Related Issues (20)
- no matching versions for query "latest" HOT 1
- No responder found when mocking with Cobra.Execute() HOT 2
- Mock not working HOT 5
- Inconsist behavior between http.Response.Body and httpmock.Response.Body HOT 4
- Support for go 1.17 HOT 2
- Httpmock not working with resty HOT 4
- No respond for URL question HOT 5
- how httpmock works with InsecureSkipVerify HOT 2
- t.Parallel() HOT 1
- test httpstatus 302 on resty OnAfterResponse not expected HOT 3
- [Question] How to add custom values in the response header ? HOT 2
- http mocks regardless of domain HOT 2
- Question: how to sponsor this project? HOT 2
- Capture the request body HOT 20
- [Question] How to return binary files in http response body HOT 1
- `Or()` and `And()` don't work correctly HOT 2
- MinTimes and MaxTimes responder invocations HOT 5
- Update resty usage example + Add JsonString responder HOT 1
- Unable to Mock Responses with Custom http.Client and Transport HOT 8
- Implemented test case with mock. but it's not working HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpmock.