Newer
Older
pokemon-go-trade / vendor / github.com / hashicorp / hcl / hcl_test.go
Simon Lindgren on 12 Feb 2021 334 bytes first commit
package hcl

import (
	"io/ioutil"
	"path/filepath"
	"testing"
)

// This is the directory where our test fixtures are.
const fixtureDir = "./test-fixtures"

func testReadFile(t *testing.T, n string) string {
	d, err := ioutil.ReadFile(filepath.Join(fixtureDir, n))
	if err != nil {
		t.Fatalf("err: %s", err)
	}

	return string(d)
}