# Functions
MockAttrs constructs and returns a hcl.Attributes map with attributes derived from the given expression map.
MockBody returns a hcl.Body implementation that works in terms of a caller-constructed hcl.BodyContent, thus avoiding the need to parse a "real" HCL config file to use as input to a test.
MockExprLiteral returns a hcl.Expression that evaluates to the given literal value.
MockExprTraversal returns a hcl.Expression that evaluates the given absolute traversal.
MockExprTraversalSrc is like MockExprTraversal except it takes a traversal string as defined by the native syntax and parses it first.
MockExprVariable returns a hcl.Expression that evaluates to the value of the variable with the given name.