We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3b6765 commit c079abdCopy full SHA for c079abd
main_test.go
@@ -30,8 +30,8 @@ func TestGetPosts(t *testing.T) {
30
// pass 'nil' as the third parameter.
31
req := httptest.NewRequest("GET", "/posts", nil)
32
33
- app := newApp()
34
// We create a ResponseRecorder (which satisfies http.ResponseWriter) to record the response.
+ app := newApp()
35
rr := httptest.NewRecorder()
36
handler := http.HandlerFunc(app.getPosts)
37
0 commit comments