From 581ce35147781c41fc003e4606a6c6169b0a2927 Mon Sep 17 00:00:00 2001 From: Integralist Date: Fri, 22 Sep 2023 08:58:52 +0100 Subject: [PATCH] fix(testutil): correct annotations --- pkg/testutil/api.go | 1 + pkg/testutil/args.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/testutil/api.go b/pkg/testutil/api.go index 753d80fea..f2bd6d469 100644 --- a/pkg/testutil/api.go +++ b/pkg/testutil/api.go @@ -70,6 +70,7 @@ func CloneVersionError(_ *fastly.CloneVersionInput) (*fastly.Version, error) { // WhoamiVerifyClient is used by `whoami` and `sso` tests. type WhoamiVerifyClient whoami.VerifyResponse +// Do executes the HTTP request. func (c WhoamiVerifyClient) Do(*http.Request) (*http.Response, error) { rec := httptest.NewRecorder() _ = json.NewEncoder(rec).Encode(whoami.VerifyResponse(c)) diff --git a/pkg/testutil/args.go b/pkg/testutil/args.go index 59374c410..2209f1e79 100644 --- a/pkg/testutil/args.go +++ b/pkg/testutil/args.go @@ -73,7 +73,7 @@ func (s MockAuthServer) SetAccountEndpoint(_ string) { // no-op } -// SetEndpoint sets the API endpoint. +// SetAPIEndpoint sets the API endpoint. func (s MockAuthServer) SetAPIEndpoint(_ string) { // no-op }