diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/config/testing.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/config/testing.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/config/testing.go b/vendor/github.com/hashicorp/terraform/config/testing.go new file mode 100644 index 0000000..f7bfadd --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/config/testing.go | |||
@@ -0,0 +1,15 @@ | |||
1 | package config | ||
2 | |||
3 | import ( | ||
4 | "testing" | ||
5 | ) | ||
6 | |||
7 | // TestRawConfig is used to create a RawConfig for testing. | ||
8 | func TestRawConfig(t *testing.T, c map[string]interface{}) *RawConfig { | ||
9 | cfg, err := NewRawConfig(c) | ||
10 | if err != nil { | ||
11 | t.Fatalf("err: %s", err) | ||
12 | } | ||
13 | |||
14 | return cfg | ||
15 | } | ||