Skip to content

Added unit tests for several scenarios #87

Added unit tests for several scenarios

Added unit tests for several scenarios #87

Triggered via pull request November 8, 2023 14:40
Status Failure
Total duration 1m 10s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

linters.yaml

on: pull_request
golangci-lint
59s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 10 warnings
golangci-lint: service/service_test.go#L21
G108: Profiling endpoint is automatically exposed on /debug/pprof (gosec)
golangci-lint: service/service_test.go#L38
G114: Use of net/http serve function that has no support for setting timeouts (gosec)
golangci-lint: service/service_unit_test.go#L52
G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
golangci-lint: service/step_defs_test.go#L2016
G109: Potential Integer overflow made by strconv.Atoi result conversion to int16/32 (gosec)
golangci-lint
issues found
golangci-lint: pkg/file/file.go#L267
unused-parameter: parameter 'pmaxClient' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: pkg/file/file.go#L314
unused-parameter: parameter 'pmaxClient' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L1378
unused-parameter: parameter 'namespace' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L1595
unused-parameter: parameter 'volumePrefix' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L1809
unused-parameter: parameter 'id' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L2673
unused-parameter: parameter 'vol' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L2724
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L2725
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L2732
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: service/controller.go#L2733
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)