Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 932 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 932 Bytes

justforfunc 16: unit testing HTTP servers

Let's cover the basics of unit testing in Go and then show how you can test http.HandlerFunc and http.Handler.

You'll learn how to use "testing", including subtests and examples, and "net/http/httptest" with ResponseRecorder and Server.

References: