-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
terraform: refactor nodeModuleVariable and NodeRootVariable EvalTree(…
…)s (#26245) EvalModuleCallArguments is now a method on nodeModuleVariable, it's only caller, and the other functions have been replaces with straight through code (or in the case of evalVariableValidations, a standalone function). I was unable to add tests for nodeModuleVariable.Execute, which requires fixtures that aren't part of the MockEvalContext (a scope.evalContext is one); it's not ideal but that function should be well covered by the context tests so I chose to leave it as-is. Finally, I removed the unused function hclTypeName. Deleting code is fun!
- Loading branch information
1 parent
5c69cf0
commit f64d5b2
Showing
4 changed files
with
147 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.