github.com/posener/terraform@v0.11.0-beta1.0.20171103235147-645df36af025/plugin/plugin_test.go (about)

     1  package plugin
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/terraform"
     5  )
     6  
     7  func testProviderFixed(p terraform.ResourceProvider) ProviderFunc {
     8  	return func() terraform.ResourceProvider {
     9  		return p
    10  	}
    11  }
    12  
    13  func testProvisionerFixed(p terraform.ResourceProvisioner) ProvisionerFunc {
    14  	return func() terraform.ResourceProvisioner {
    15  		return p
    16  	}
    17  }