Smock

(★ 49)

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

jsDelivr

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

# Project Badges

// repository documentation