terraform-provider-google/vendor/github.com/hashicorp/terraform/config/testing.go
2018-01-10 10:52:15 -08:00

18 lines
275 B
Go

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
}