Skip to content

Commit d8eaaa3

Browse files
committed
ignore test codes
1 parent f2c8d89 commit d8eaaa3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

path_auth_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func TestKeyAuth(t *testing.T) {
4949
handlerCalled := false
5050
handler := func(c echo.Context) error {
5151
handlerCalled = true
52+
//nolint:wrapcheck
5253
return c.String(http.StatusOK, "test")
5354
}
5455
middlewareChain := PathAuth("apikey", testKeyValidator)(handler)
@@ -71,6 +72,7 @@ func TestKeyAuth(t *testing.T) {
7172
handlerCalled := false
7273
handler := func(c echo.Context) error {
7374
handlerCalled = true
75+
//nolint:wrapcheck
7476
return c.String(http.StatusOK, "test")
7577
}
7678
middlewareChain := PathAuth("apikey", testKeyValidator)(handler)
@@ -93,6 +95,7 @@ func TestKeyAuth(t *testing.T) {
9395
handlerCalled := false
9496
handler := func(c echo.Context) error {
9597
handlerCalled = true
98+
//nolint:wrapcheck
9699
return c.String(http.StatusOK, "test")
97100
}
98101
middlewareChain := PathAuth("undef", testKeyValidator)(handler)
@@ -157,6 +160,7 @@ func TestPathAuthWithConfig(t *testing.T) {
157160
handlerCalled := false
158161
handler := func(c echo.Context) error {
159162
handlerCalled = true
163+
//nolint:wrapcheck
160164
return c.String(http.StatusOK, "test")
161165
}
162166
config := PathAuthConfig{
@@ -199,6 +203,7 @@ func TestPathAuthWithConfig_panicsOnEmptyValidator(t *testing.T) {
199203
"PathAuth: requires a validator function",
200204
func() {
201205
handler := func(c echo.Context) error {
206+
//nolint:wrapcheck
202207
return c.String(http.StatusOK, "test")
203208
}
204209
PathAuthWithConfig(PathAuthConfig{
@@ -214,6 +219,7 @@ func TestPathAuthWithConfig_panicsOnEmptyParam(t *testing.T) {
214219
"PathAuth: requires a param",
215220
func() {
216221
handler := func(c echo.Context) error {
222+
//nolint:wrapcheck
217223
return c.String(http.StatusOK, "test")
218224
}
219225
PathAuthWithConfig(PathAuthConfig{
@@ -230,6 +236,7 @@ func TestPathAuthWithConfig_panicsOnEmptyParam(t *testing.T) {
230236
"PathAuth: requires a param",
231237
func() {
232238
handler := func(c echo.Context) error {
239+
//nolint:wrapcheck
233240
return c.String(http.StatusOK, "test")
234241
}
235242
PathAuth("", func(auth string, c echo.Context) (bool, error) {

0 commit comments

Comments
 (0)