aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/terraform/config/testing.go
blob: 831fc77867f20a1795f6e24580ed8e63fb631048 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package config

import (
	"testing"
)

// TestRawConfig is used to create a RawConfig for testing.
func TestRawConfig(t *testing.T, c map[string]interface{}) *RawConfig {
	t.Helper()

	cfg, err := NewRawConfig(c)
	if err != nil {
		t.Fatalf("err: %s", err)
	}

	return cfg
}