Smock
Smock ( Previously: RequestBin ) is a golang package for testing the outgoing http requests initiated from a function. The package creates a mock server and passes the URL to the function to be tested and then collects all the requests that the server received.
File Explorer
- .gitignore
- .travis.yml
- README.md
- smock.go
- smock_test.go
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Link
Example
# Project Badges
// repository documentation
Was this content helpful?
(0 ratings)
