terraform/lang
Kristin Laemmert 394cf7f25e
lang/funcs: add acc tests for functions (#21112)
* lang/funcs: testing of functions through the lang package API
The function-specific unit tests do not cover the HCL conversion that happens when the functions are called in a terraform configuration. For e.g., HCL converts sets to lists before passing it to the function. This means that we could not test passing a set in the function _unit_ tests.
This adds a higher-level acceptance test, plus a check that every (pure) function has a test.

* website/docs: update function documentation
2019-04-29 13:11:28 -04:00
..
blocktoattr lang/blocktoattr: Apply fixup within already-fixed-up blocks too 2019-04-05 14:22:41 -07:00
funcs lang/funcs: add acc tests for functions (#21112) 2019-04-29 13:11:28 -04:00
testdata/functions-test lang/funcs: add acc tests for functions (#21112) 2019-04-29 13:11:28 -04:00
data.go core: Static-validate resource references against schemas 2018-11-26 08:25:03 -08:00
data_test.go core: Static-validate resource references against schemas 2018-11-26 08:25:03 -08:00
doc.go lang: new package for the runtime parts of the config language 2018-10-16 18:44:26 -07:00
eval.go lang: EvalBlock should use ReferencesInBlock 2019-04-03 15:57:17 -07:00
eval_test.go lang: EvalBlock should use ReferencesInBlock 2019-04-03 15:57:17 -07:00
functions.go lang/funcs: add 'strrev' interpolation function. (#21091) 2019-04-24 14:52:39 -04:00
functions_test.go lang/funcs: add acc tests for functions (#21112) 2019-04-29 13:11:28 -04:00
references.go lang: Detect references when a list/set attr is defined using blocks 2019-03-28 10:41:01 -07:00
scope.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00