Mockhttp
Mock object for Go http.ResponseWriter
Install / Use
/learn @tv42/MockhttpREADME
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.
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
