test: add tests to improve code coverage for logging #768
ci.yml
on: pull_request
runner / formatting
54s
runner / golangci-lint
24s
runner / yamllint
18s
runner / dotenv-linter
9s
runner / check-dependencies
23s
Matrix: runner / build and tests
Annotations
23 errors
runner / build and tests (1.21.x, ubuntu-22.04)
Process completed with exit code 1.
|
runner / build and tests (1.21.x, windows-2019)
The job was canceled because "_1_21_x_ubuntu-22_04" failed.
|
runner / build and tests (1.21.x, windows-2019)
Process completed with exit code 1.
|
runner / golangci-lint:
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)
|
runner / golangci-lint:
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)
|
runner / golangci-lint:
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")
^
|
runner / golangci-lint:
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) {
^
|
runner / golangci-lint:
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)
^
|
runner / golangci-lint:
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)
^
|
runner / golangci-lint:
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)
^
|
runner / golangci-lint
reviewdog exited with status code: 1
|
runner / build and tests (1.21.x, ubuntu-20.04)
The job was canceled because "_1_21_x_ubuntu-22_04" failed.
|
runner / build and tests (1.21.x, ubuntu-20.04)
The operation was canceled.
|
runner / build and tests (1.22.x, windows-2019)
The job was canceled because "_1_21_x_ubuntu-22_04" failed.
|
runner / build and tests (1.22.x, windows-2019)
The operation was canceled.
|
runner / build and tests (1.21.x, windows-2022)
The job was canceled because "_1_21_x_ubuntu-22_04" failed.
|
runner / build and tests (1.21.x, windows-2022)
The operation was canceled.
|
runner / build and tests (1.22.x, windows-2022)
The job was canceled because "_1_21_x_ubuntu-22_04" failed.
|
runner / build and tests (1.22.x, windows-2022)
The operation was canceled.
|
runner / build and tests (1.22.x, ubuntu-20.04)
The job was canceled because "_1_21_x_ubuntu-22_04" failed.
|
runner / build and tests (1.22.x, ubuntu-20.04)
The operation was canceled.
|
runner / build and tests (1.22.x, ubuntu-22.04)
The job was canceled because "_1_21_x_ubuntu-22_04" failed.
|
runner / build and tests (1.22.x, ubuntu-22.04)
The operation was canceled.
|