Popularity
2.3
Growing
Activity
0.0
Stable
22
2
5

Programming language: Go
License: MIT License
Tags: Testing     Mock    

mockhttp alternatives and similar packages

Based on the "Mock" category.
Alternatively, view mockhttp alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of mockhttp or a related project?

Add another 'Mock' Package

README

mockhttp -- Go package for unit testing HTTP serving

Unit testing HTTP services written in Go means you need to call their ServeHTTP receiver. For this, you need something that fulfills the http.ResponseWriter interface, and you need to populate a http.Request struct with suitable-looking data. mockhttp.go helps you do these tasks, without excessive copy-pasting.

See mockhttp_test.go for an example of usage.