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"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// nolint: govet
|
||||||
type ExampleStruct struct {
|
type ExampleStruct struct {
|
||||||
X int
|
X int
|
||||||
Y string
|
Y string
|
||||||
|
@ -194,6 +194,7 @@ func TestGetVirtDriveNameInvalidIndex(t *testing.T) {
|
|||||||
|
|
||||||
func TestGetVirtDriveName(t *testing.T) {
|
func TestGetVirtDriveName(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
// nolint: govet
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
index int
|
index int
|
||||||
expectedDrive string
|
expectedDrive string
|
||||||
@ -248,6 +249,7 @@ func TestGetSCSIIdLun(t *testing.T) {
|
|||||||
|
|
||||||
func TestGetSCSIAddress(t *testing.T) {
|
func TestGetSCSIAddress(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
// nolint: govet
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
index int
|
index int
|
||||||
expectedSCSIAddress string
|
expectedSCSIAddress string
|
||||||
@ -281,6 +283,7 @@ func TestMakeNameID(t *testing.T) {
|
|||||||
func TestBuildSocketPath(t *testing.T) {
|
func TestBuildSocketPath(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
|
||||||
|
// nolint: govet
|
||||||
type testData struct {
|
type testData struct {
|
||||||
elems []string
|
elems []string
|
||||||
valid bool
|
valid bool
|
||||||
|
Loading…
Reference in New Issue
Block a user