github.com/paybyphone/terraform@v0.9.5-0.20170613192930-9706042ddd51/config/testing.go (about) 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 }