Skip to content

Commit 23a0b23

Browse files
- Added handler unit tests.
1 parent c011fd8 commit 23a0b23

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,17 @@ linters:
206206
- bodyclose
207207
- dupl
208208
- errcheck
209+
- errorlint
209210
- funlen
210211
- goconst
211212
- gosec
212213
- noctx
213214
- revive
214215
- wrapcheck
215216
- govet
217+
- lll
218+
- whitespace
219+
- cyclop
216220
path: _test\.go
217221
paths:
218222
- third_party$

internal/stackql/handler/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ type standardHandlerContext struct {
148148
defaultHTTPClient *http.Client
149149
}
150150

151-
// for testing only
151+
// for testing only.
152152
func (hc *standardHandlerContext) SetDefaultHTTPClient(client *http.Client) {
153153
hc.defaultHTTPClient = client
154154
}

0 commit comments

Comments
 (0)