(reg *httpmock.Registry)
| 15 | ) |
| 16 | |
| 17 | func newTestDiscussionClient(reg *httpmock.Registry) DiscussionClient { |
| 18 | httpClient := &http.Client{} |
| 19 | httpmock.ReplaceTripper(httpClient, reg) |
| 20 | return NewDiscussionClient(httpClient) |
| 21 | } |
| 22 | |
| 23 | // minimalNode returns a minimal JSON discussion node with the given id and title. |
| 24 | func minimalNode(id, title string) string { |
no test coverage detected