From 562236085b79b3fe793d9f02fdcbba9480c6a5ee Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 18 Dec 2021 16:03:15 +0300 Subject: style: format all Go code The code in //users/wpcarro/tools/monzo_ynab/ynab/client.go was not valid Go and has been commented out. Change-Id: Icb4003607f30294dcbf60132eb7722702c7f0d84 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4400 Tested-by: BuildkiteCI Reviewed-by: wpcarro Reviewed-by: Profpatsch --- ops/kontemplate/context/context_test.go | 8 ++++---- ops/kontemplate/templater/templater_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ops/kontemplate') diff --git a/ops/kontemplate/context/context_test.go b/ops/kontemplate/context/context_test.go index 7ecd9d587d..471eb246cf 100644 --- a/ops/kontemplate/context/context_test.go +++ b/ops/kontemplate/context/context_test.go @@ -333,15 +333,15 @@ func TestSetInvalidVariablesFromArguments(t *testing.T) { // This test ensures that variables are merged in the correct order. // Please consult the test data in `testdata/merging`. func TestValueMergePrecedence(t *testing.T) { - cliVars:= []string{"cliVar=cliVar"} + cliVars := []string{"cliVar=cliVar"} ctx, _ := LoadContext("testdata/merging/context.yaml", &cliVars) expected := map[string]interface{}{ "defaultVar": "defaultVar", - "importVar": "importVar", - "globalVar": "globalVar", + "importVar": "importVar", + "globalVar": "globalVar", "includeVar": "includeVar", - "cliVar": "cliVar", + "cliVar": "cliVar", } result := ctx.ResourceSets[0].Values diff --git a/ops/kontemplate/templater/templater_test.go b/ops/kontemplate/templater/templater_test.go index c20858c203..9d9fc8d1ff 100644 --- a/ops/kontemplate/templater/templater_test.go +++ b/ops/kontemplate/templater/templater_test.go @@ -185,7 +185,7 @@ func TestInsertTemplateFunction(t *testing.T) { resourceSet := context.ResourceSet{ Path: "testdata", Values: map[string]interface{}{ - "testName": "TestInsertTemplateFunction", + "testName": "TestInsertTemplateFunction", }, } -- cgit 1.4.1