github.com/Hashicorp/terraform@v0.11.12-beta1/builtin/providers/test/provider_test.go (about) 1 package test 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/terraform/helper/schema" 7 "github.com/hashicorp/terraform/terraform" 8 ) 9 10 var testAccProviders map[string]terraform.ResourceProvider 11 var testAccProvider *schema.Provider 12 13 func TestProvider(t *testing.T) { 14 if err := Provider().(*schema.Provider).InternalValidate(); err != nil { 15 t.Fatalf("err: %s", err) 16 } 17 } 18 19 func init() { 20 testAccProvider = Provider().(*schema.Provider) 21 testAccProviders = map[string]terraform.ResourceProvider{ 22 "test": testAccProvider, 23 } 24 }