about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-18T13·03+0300
committertazjin <mail@tazj.in>2021-12-19T18·05+0000
commit562236085b79b3fe793d9f02fdcbba9480c6a5ee (patch)
tree501e61075c5e53caaa81b55ce8d1fb7659a32858 /ops
parentd7bf4f07c98694aafa2acd78eba1871b769c61bd (diff)
style: format all Go code r/3311
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 <wpcarro@gmail.com>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'ops')
-rw-r--r--ops/kontemplate/context/context_test.go8
-rw-r--r--ops/kontemplate/templater/templater_test.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/ops/kontemplate/context/context_test.go b/ops/kontemplate/context/context_test.go
index 7ecd9d587d24..471eb246cf2f 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 c20858c203b4..9d9fc8d1ffa7 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",
 		},
 	}