MCPcopy
hub / github.com/hashicorp/hcl / build

Function build

specsuite/spec_test.go:33–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func build() error {
34 err := goBuild("github.com/hashicorp/hcl/v2/cmd/hcldec", "tmp_hcldec")
35 if err != nil {
36 return fmt.Errorf("error building hcldec: %s", err)
37 }
38
39 err = goBuild("github.com/hashicorp/hcl/v2/cmd/hclspecsuite", "tmp_hclspecsuite")
40 if err != nil {
41 return fmt.Errorf("error building hcldec: %s", err)
42 }
43
44 return nil
45}
46
47func TestSpec(t *testing.T) {
48 suiteDir := filepath.Clean("../specsuite/tests")

Callers 1

TestMainFunction · 0.85

Calls 1

goBuildFunction · 0.85

Tested by

no test coverage detected