func TestGoldenRequest(t *testing.T) { … } type RoundTripperFunc … func (f RoundTripperFunc) RoundTrip(r *http.Request) (*http.Response, error) { … } // TestGoldenResponse tests that the objects returned from dynamic client methods, given a fixed // HTTP response, are not changed unintentionally by changes to the client. func TestGoldenResponse(t *testing.T) { … }