mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
misc: Remove unused variables identified by varcheck
And add varcheck to the list of linters used on travis runs (with an increased deadline.) ciao-launcher/qemu_test.go:31:5⚠️ unused variable or constant imageInfoTestGood (varcheck) ciao-launcher/qemu_test.go:44:5⚠️ unused variable or constant imageInfoTestMissingBytes (varcheck) ciao-launcher/qemu_test.go:57:5⚠️ unused variable or constant imageInfoTestMissingLine (varcheck) ciao-launcher/qemu_test.go:69:5⚠️ unused variable or constant imageInfoTooBig (varcheck) ciao-launcher/qemu_test.go:82:5⚠️ unused variable or constant imageInfoBadBytes (varcheck) configuration/configuration_test.go:35:7⚠️ unused variable or constant glanceURL (varcheck) ciao-controller/controller_test.go:1918:5⚠️ unused variable or constant testClients (varcheck) qemu/qmp_test.go:44:2⚠️ unused variable or constant qmpSuccess (varcheck) qemu/qmp_test.go:45:2⚠️ unused variable or constant qmpFailure (varcheck) Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
d48b5b5f48
commit
58a835e6a6
20
qmp_test.go
20
qmp_test.go
@ -32,17 +32,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
microStr = "50"
|
microStr = "50"
|
||||||
minorStr = "6"
|
minorStr = "6"
|
||||||
majorStr = "2"
|
majorStr = "2"
|
||||||
micro = 50
|
micro = 50
|
||||||
minor = 6
|
minor = 6
|
||||||
major = 2
|
major = 2
|
||||||
cap1 = "one"
|
cap1 = "one"
|
||||||
cap2 = "two"
|
cap2 = "two"
|
||||||
qmpHello = `{ "QMP": { "version": { "qemu": { "micro": ` + microStr + `, "minor": ` + minorStr + `, "major": ` + majorStr + ` }, "package": ""}, "capabilities": ["` + cap1 + `","` + cap2 + `"]}}` + "\n"
|
qmpHello = `{ "QMP": { "version": { "qemu": { "micro": ` + microStr + `, "minor": ` + minorStr + `, "major": ` + majorStr + ` }, "package": ""}, "capabilities": ["` + cap1 + `","` + cap2 + `"]}}` + "\n"
|
||||||
qmpSuccess = `{ "return": {}}` + "\n"
|
|
||||||
qmpFailure = `{ "error": {}}` + "\n"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type qmpTestLogger struct{}
|
type qmpTestLogger struct{}
|
||||||
|
Loading…
Reference in New Issue
Block a user