runtime: virtcontainers/utils: fix govet fieldalignment

Fix structures alignment

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2021-07-20 10:29:35 -05:00
parent 1e4f7faa77
commit aec530904b
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import (
"github.com/stretchr/testify/assert"
)
// nolint: govet
type ExampleStruct struct {
X int
Y string

View File

@ -194,6 +194,7 @@ func TestGetVirtDriveNameInvalidIndex(t *testing.T) {
func TestGetVirtDriveName(t *testing.T) {
assert := assert.New(t)
// nolint: govet
tests := []struct {
index int
expectedDrive string
@ -248,6 +249,7 @@ func TestGetSCSIIdLun(t *testing.T) {
func TestGetSCSIAddress(t *testing.T) {
assert := assert.New(t)
// nolint: govet
tests := []struct {
index int
expectedSCSIAddress string
@ -281,6 +283,7 @@ func TestMakeNameID(t *testing.T) {
func TestBuildSocketPath(t *testing.T) {
assert := assert.New(t)
// nolint: govet
type testData struct {
elems []string
valid bool