mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
The "values" function wasn't producing consistently-ordered keys in its result, leading to crashes. This fixes #19204. While working on these functions anyway, this also improves slightly their precision when working with object types, where we can produce a more complete result for unknown values because the attribute names are part of the type. We can also produce results for known maps that have unknown elements; these unknowns will also appear in the values(...) result, allowing them to propagate through expressions. Finally, this adds a few more test cases to try different permutations of empty and unknown values. |
||
---|---|---|
.. | ||
testdata | ||
cidr_test.go | ||
cidr.go | ||
collection_test.go | ||
collection.go | ||
crypto_test.go | ||
crypto.go | ||
datetime_test.go | ||
datetime.go | ||
encoding_test.go | ||
encoding.go | ||
filesystem_test.go | ||
filesystem.go | ||
number_test.go | ||
number.go | ||
string_test.go | ||
string.go |