github.com/jhixson74/hashicorp-terraform@v0.11.12-beta1/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  }