type fakeHandler … // ServeHTTP stores the fact that this fake handler was called. func (fh *fakeHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { … } func TestTranslatingHandler(t *testing.T) { … }
type fakeHandler … // ServeHTTP stores the fact that this fake handler was called. func (fh *fakeHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { … } func TestTranslatingHandler(t *testing.T) { … }