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

import (
	"testing"
)

// TestRawConfig is used to create a RawConfig for testing.
func TestRawConfig(t *testing.T, c map[string]interface{}) *RawConfig {
	cfg, err := NewRawConfig(c)
	if err != nil {
		t.Fatalf("err: %s", err)
	}

	return cfg
}