cmd/hclspecsuite: run hcldec with --keep-nulls

This gives us a more precise picture of the result, which is helpful to
ensure our tests are not "cheating".
This commit is contained in:
Martin Atkins 2019-09-10 18:37:09 -07:00
parent c366498686
commit 791068cd07
1 changed files with 2 additions and 1 deletions

View File

@ -15,8 +15,8 @@ import (
"github.com/zclconf/go-cty/cty/convert"
ctyjson "github.com/zclconf/go-cty/cty/json"
"github.com/hashicorp/hcl/v2/ext/typeexpr"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/ext/typeexpr"
"github.com/hashicorp/hcl/v2/hclparse"
)
@ -318,6 +318,7 @@ func (r *Runner) hcldecTransform(specFile, inputFile string) (cty.Value, hcl.Dia
"--spec=" + specFile,
"--diags=json",
"--with-type",
"--keep-nulls",
inputFile,
},
Stdout: &outBuffer,