packer/hcl2template/function
Wilken Rivera 263821ac25 hcl2template/functions: Add Non-null refinements for various functions
cty's new "refinements" concept allows us to reduce the range of unknown
values from our functions. This initial changeset focuses only on
declaring which functions are guaranteed to return a non-null result,
which is a helpful baseline refinement because it allows "== null" and
"!= null" tests to produce known results even when the given value is
otherwise unknown.

This commit also includes some updates to test results that are now
refined based on cty's own built-in refinement behaviors, just as a
result of us having updated cty in the previous commit.
2023-11-29 12:28:16 -05:00
..
testdata HCL2: add templatefile function (#10776) 2021-03-23 12:02:05 +01:00
aws_secretetkey.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
Consul.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
datetime.go hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
datetime_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
env.go hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
index.go hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
index_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
length.go hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
length_test.go hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
refinements.go hcl2template/functions: Add Non-null refinements for various functions 2023-11-29 12:28:16 -05:00
templatefile.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
templatefile_test.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
vault.go [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00