Use HCL encoder

This commit is contained in:
Mike Farah
2025-12-08 20:30:47 +11:00
parent 2e96a28270
commit 8d430cf41c
4 changed files with 143 additions and 190 deletions
-1
View File
@@ -144,7 +144,6 @@ var hclFormatScenarios = []formatScenario{
func testHclScenario(t *testing.T, s formatScenario) {
switch s.scenarioType {
case "decode":
// Decode to YAML, which means we need to clear HCL-specific tags
result := mustProcessFormatScenario(s, NewHclDecoder(), NewYamlEncoder(ConfiguredYamlPreferences))
test.AssertResultWithContext(t, s.expected, result, s.description)
case "roundtrip":