Skip to content

Commit d9e2354

Browse files
authored
apply go fmt (#1788)
1 parent 45870c7 commit d9e2354

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

middleware/proxy_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ func TestProxyRewriteRegex(t *testing.T) {
247247
{"/y/foo/bar", http.StatusOK, "/v5/bar/foo"},
248248
}
249249

250-
251250
for _, tc := range testCases {
252251
t.Run(tc.requestPath, func(t *testing.T) {
253252
req.URL, _ = url.Parse(tc.requestPath)

middleware/rewrite_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ func TestEchoRewriteWithRegexRules(t *testing.T) {
163163
{"/y/foo/bar", "/v5/bar/foo"},
164164
}
165165

166-
for _, tc := range testCases {
167-
t.Run(tc.requestPath, func(t *testing.T) {
168-
req = httptest.NewRequest(http.MethodGet, tc.requestPath, nil)
169-
rec = httptest.NewRecorder()
170-
e.ServeHTTP(rec, req)
171-
assert.Equal(t, tc.expectPath, req.URL.EscapedPath())
172-
})
173-
}
166+
for _, tc := range testCases {
167+
t.Run(tc.requestPath, func(t *testing.T) {
168+
req = httptest.NewRequest(http.MethodGet, tc.requestPath, nil)
169+
rec = httptest.NewRecorder()
170+
e.ServeHTTP(rec, req)
171+
assert.Equal(t, tc.expectPath, req.URL.EscapedPath())
172+
})
173+
}
174174
}

0 commit comments

Comments
 (0)