forked from tv42/mockhttp
-
Notifications
You must be signed in to change notification settings - Fork 0
vistarmedia/mockhttp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
========================================================= mockhttp.go -- 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.
About
Mock object for Go http.ResponseWriter
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 100.0%