diff --git a/infra/blueprint-test/pkg/bq/bq.go b/infra/blueprint-test/pkg/bq/bq.go index cdec04f6a34..d9282d9d78d 100644 --- a/infra/blueprint-test/pkg/bq/bq.go +++ b/infra/blueprint-test/pkg/bq/bq.go @@ -29,9 +29,9 @@ import ( ) type CmdCfg struct { - bqBinary string // path to bq binary - commonArgs []string // common arguments to pass to bq calls - logger *logger.Logger // custom logger + bqBinary string // path to bq binary + commonArgs []string // common arguments to pass to bq calls + logger *logger.Logger // custom logger } type cmdOption func(*CmdCfg) diff --git a/infra/blueprint-test/pkg/utils/string_formatter.go b/infra/blueprint-test/pkg/utils/string_formatter.go index 5df7c0deb0c..5a2f7449ddb 100644 --- a/infra/blueprint-test/pkg/utils/string_formatter.go +++ b/infra/blueprint-test/pkg/utils/string_formatter.go @@ -14,9 +14,9 @@ * limitations under the License. */ - package utils +package utils - import "fmt" +import "fmt" // StringFromTextAndArgs converts msg and args to formatted text func StringFromTextAndArgs(msgAndArgs ...interface{}) string { diff --git a/infra/blueprint-test/pkg/utils/string_formatter_test.go b/infra/blueprint-test/pkg/utils/string_formatter_test.go index 95ea7cd7c73..6ab77b35a7e 100644 --- a/infra/blueprint-test/pkg/utils/string_formatter_test.go +++ b/infra/blueprint-test/pkg/utils/string_formatter_test.go @@ -24,22 +24,22 @@ import ( func TestStringFromTextAndArgs(t *testing.T) { tests := []struct { - name string - cmd string - args []interface{} - output string + name string + cmd string + args []interface{} + output string }{ { - name: "one arg", - cmd: "project list --filter=%s", - args: []interface{}{"TEST_PROJECT"}, - output: "project list --filter=TEST_PROJECT", + name: "one arg", + cmd: "project list --filter=%s", + args: []interface{}{"TEST_PROJECT"}, + output: "project list --filter=TEST_PROJECT", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { assert := assert.New(t) - funcOut := StringFromTextAndArgs(append([]interface{}{tt.cmd}, tt.args...) ...) + funcOut := StringFromTextAndArgs(append([]interface{}{tt.cmd}, tt.args...)...) assert.Equal(tt.output, funcOut) }) }