You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.Fatalf("unexpected success for %#v; want error\ngot: %#v", test.Input, got)
@@ -148,7 +148,7 @@ two = 2
148
148
}
149
149
}
150
150
151
-
funcTestTFVarsDecode(t*testing.T) {
151
+
funcTestDecodeTfvars(t*testing.T) {
152
152
tests:= []struct {
153
153
Input cty.Value
154
154
Want cty.Value
@@ -179,25 +179,25 @@ number = 2`),
179
179
// This is actually not a very good diagnosis for this error,
180
180
// since we're expecting HCL arguments rather than HCL blocks,
181
181
// but that's something we'd need to address in HCL.
182
-
WantErr: `invalid tfvars syntax: <tfvarsdecode argument>:1,17-17: Invalid block definition; Either a quoted string block label or an opening brace ("{") is expected here.`,
182
+
WantErr: `invalid tfvars syntax: <decode_tfvars argument>:1,17-17: Invalid block definition; Either a quoted string block label or an opening brace ("{") is expected here.`,
183
183
},
184
184
{
185
185
Input: cty.StringVal(`foo = not valid syntax`),
186
-
WantErr: `invalid tfvars syntax: <tfvarsdecode argument>:1,11-16: Missing newline after argument; An argument definition must end with a newline.`,
186
+
WantErr: `invalid tfvars syntax: <decode_tfvars argument>:1,11-16: Missing newline after argument; An argument definition must end with a newline.`,
187
187
},
188
188
{
189
189
Input: cty.StringVal(`foo = var.whatever`),
190
-
WantErr: `invalid expression for variable "foo": <tfvarsdecode argument>:1,7-10: Variables not allowed; Variables may not be used here.`,
190
+
WantErr: `invalid expression for variable "foo": <decode_tfvars argument>:1,7-10: Variables not allowed; Variables may not be used here.`,
191
191
},
192
192
{
193
193
Input: cty.StringVal(`foo = whatever()`),
194
-
WantErr: `invalid expression for variable "foo": <tfvarsdecode argument>:1,7-17: Function calls not allowed; Functions may not be called here.`,
194
+
WantErr: `invalid expression for variable "foo": <decode_tfvars argument>:1,7-17: Function calls not allowed; Functions may not be called here.`,
0 commit comments