| Ash Wilson | b482d54 | 2014-08-28 15:48:04 -0400 | [diff] [blame] | 1 | package tokens |
| 2 | |||||
| 3 | import ( | ||||
| 4 | "net/http" | ||||
| 5 | "net/http/httptest" | ||||
| 6 | ) | ||||
| 7 | |||||
| 8 | var ( | ||||
| 9 | mux *http.ServeMux | ||||
| 10 | server *httptest.Server | ||||
| 11 | ) | ||||
| 12 | |||||
| 13 | func setup() { | ||||
| 14 | mux = http.NewServeMux() | ||||
| 15 | server = httptest.NewServer(mux) | ||||
| 16 | } | ||||
| 17 | |||||
| 18 | func teardown() { | ||||
| 19 | server.Close() | ||||
| 20 | } | ||||
| 21 | |||||
| 22 | func endpoint() string { | ||||
| 23 | return server.URL + "/" | ||||
| 24 | } | ||||