episode6

command
v0.0.0-...-c6e3130 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

Unit Testing HTTP Handlers

Watch The Screencast

Go in 5 Minutes, episode 6.

This screencast shows two ways to quickly and effectively test your net/http handlers.

Screencast video: https://goin5minutes.com/screencast/episode_6_unit_testing_http_handlers/

goin5minutes.com

Our website is up and running! Right now, it houses a permanent list of all screencasts, but I'm planning to expand it with more auxiliary content.

Please sign up for our newsletter to get emails when new screencasts come out.

Outline

  1. Flash back to episode 0
  2. net/http/httptest & testsrv
  • pure handler vs. router & handler tests
  1. Example - an API server to wrap the Github API

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL