MCPcopy
hub / github.com/hashicorp/hcl / MockExprVariable

Function MockExprVariable

hcltest/mock.go:192–194  ·  view source on GitHub ↗

MockExprVariable returns a hcl.Expression that evaluates to the value of the variable with the given name.

(name string)

Source from the content-addressed store, hash-verified

190// MockExprVariable returns a hcl.Expression that evaluates to the value of
191// the variable with the given name.
192func MockExprVariable(name string) hcl.Expression {
193 return mockExprVariable(name)
194}
195
196type mockExprVariable string
197

Callers 1

TestExpandFunction · 0.92

Calls 1

mockExprVariableTypeAlias · 0.85

Tested by 1

TestExpandFunction · 0.74