run gofumpt cleanup across code-base (#14015)

This commit is contained in:
Harshavardhana
2022-01-02 09:15:06 -08:00
committed by GitHub
parent 6f474982ed
commit f527c708f2
250 changed files with 1201 additions and 1264 deletions

View File

@@ -73,7 +73,8 @@ func Test_minioEnvironFromFile(t *testing.T) {
expectedErr bool
expectedEkvs []envKV
}{
{`
{
`
export MINIO_ROOT_USER=minio
export MINIO_ROOT_PASSWORD=minio123`,
false,
@@ -89,7 +90,8 @@ export MINIO_ROOT_PASSWORD=minio123`,
},
},
// Value with double quotes
{`export MINIO_ROOT_USER="minio"`,
{
`export MINIO_ROOT_USER="minio"`,
false,
[]envKV{
{
@@ -99,7 +101,8 @@ export MINIO_ROOT_PASSWORD=minio123`,
},
},
// Value with single quotes
{`export MINIO_ROOT_USER='minio'`,
{
`export MINIO_ROOT_USER='minio'`,
false,
[]envKV{
{
@@ -108,7 +111,8 @@ export MINIO_ROOT_PASSWORD=minio123`,
},
},
},
{`
{
`
MINIO_ROOT_USER=minio
MINIO_ROOT_PASSWORD=minio123`,
false,
@@ -123,7 +127,8 @@ MINIO_ROOT_PASSWORD=minio123`,
},
},
},
{`
{
`
export MINIO_ROOT_USERminio
export MINIO_ROOT_PASSWORD=minio123`,
true,