Skip to content

update: fix tests

update: fix tests #6

Triggered via push May 12, 2025 18:55
Status Success
Total duration 39s
Artifacts 1

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: ipvsctl.go#L14
var date is unused (U1000)
build: ipvsctl.go#L13
var commit is unused (U1000)
build: ipvs/netlink.go#L68
Sprintf doesn't have side effects and its return value is ignored (SA4017)
build: integration/validate.go#L73
unnecessary use of fmt.Sprintf (S1039)
build: integration/set.go#L109
should use time.Since instead of time.Now().Sub (S1012)
build: integration/model.go#L4
"io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
build: integration/get.go#L103
should use String() instead of fmt.Sprintf (S1025)
build: integration/get.go#L81
should omit nil check; len() for nil slices is defined as zero (S1009)
build: config/config.go#L4
"io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
build: cmd/common.go#L5
"io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)

Artifacts

Produced during runtime
Name Size Digest
coverage-report Expired
20.7 KB
sha256:7d2e0d65ddfec56a600706ce0e12b4b6bb437d3986a65535045bab72a6150265