Skip to content

Latest commit

 

History

History

16-testing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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: