test: add tests to improve code coverage for logging #768
Annotations
8 errors
pkg/logger/logger_test.go#L75
[golangci] reported by reviewdog 🐶
File is not `gofumpt`-ed with `-extra` (gofumpt)
Raw Output:
pkg/logger/logger_test.go:75: File is not `gofumpt`-ed with `-extra` (gofumpt)
|
pkg/logger/logger_test.go#L77
[golangci] reported by reviewdog 🐶
File is not `gofumpt`-ed with `-extra` (gofumpt)
Raw Output:
pkg/logger/logger_test.go:77: File is not `gofumpt`-ed with `-extra` (gofumpt)
|
pkg/logger/logger_test.go#L71
[golangci] reported by reviewdog 🐶
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
Raw Output:
pkg/logger/logger_test.go:71:12: G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
cmd := exec.Command(os.Args[0], "-test.run=TestLogger")
^
|
pkg/logger/logger_test.go#L64
[golangci] reported by reviewdog 🐶
unused-parameter: parameter 'buf' seems to be unused, consider removing or renaming it as _ (revive)
Raw Output:
pkg/logger/logger_test.go:64:50: unused-parameter: parameter 'buf' seems to be unused, consider removing or renaming it as _ (revive)
testFunction: func(t *testing.T, log *Logger, buf *bytes.Buffer) {
^
|
pkg/logger/logger_test.go#L74
[golangci] reported by reviewdog 🐶
unnecessary leading newline (whitespace)
Raw Output:
pkg/logger/logger_test.go:74:60: unnecessary leading newline (whitespace)
^
|
pkg/logger/logger_test.go#L78
[golangci] reported by reviewdog 🐶
unnecessary trailing newline (whitespace)
Raw Output:
pkg/logger/logger_test.go:78:5: unnecessary trailing newline (whitespace)
^
|
pkg/logger/logger_test.go#L118
[golangci] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)
Raw Output:
pkg/logger/logger_test.go:118:4: assignments should only be cuddled with other assignments (wsl)
log := New(tc.level)
^
|
|
This job failed
Loading