mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 07:48:55 +00:00
runtime: virtcontainers/utils: fix govet fieldalignment
Fix structures alignment Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
1e4f7faa77
commit
aec530904b
@ -11,6 +11,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
// nolint: govet
|
||||
type ExampleStruct struct {
|
||||
X int
|
||||
Y string
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user