github.com/jzbruno/terraform@v0.10.3-0.20180104230435-18975d727047/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  	t.Helper()
    10  
    11  	cfg, err := NewRawConfig(c)
    12  	if err != nil {
    13  		t.Fatalf("err: %s", err)
    14  	}
    15  
    16  	return cfg
    17  }