Closed tarotaro0 closed 5 years ago
Fix wrong argument order in RegisterResponder example.
RegisterResponder
When I saw godoc, I was a little bit confused because the RegisterResponder example is :
func TestFetchArticles(t *testing.T) { ... httpmock.RegisterResponder("GET", "http://example.com/", httpmock.NewStringResponder("hello world", 200)) ... }
but NewStringResponder is :
func NewStringResponder(status int, body string) Responder
What
Fix wrong argument order in
RegisterResponder
example.Why
When I saw godoc, I was a little bit confused because the
RegisterResponder
example is :but NewStringResponder is :