Skip to content

Files

Latest commit

1c46217 · Feb 20, 2018

History

History
This branch is up to date with campoy/justforfunc:master.

16-testing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 24, 2017
Feb 20, 2018
Jul 24, 2017

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: