packer-cn/packer-plugin-sdk/sdk-internals/communicator/none/communicator_test.go

16 lines
280 B
Go

package none
import (
"testing"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
)
func TestCommIsCommunicator(t *testing.T) {
var raw interface{}
raw = &comm{}
if _, ok := raw.(packersdk.Communicator); !ok {
t.Fatalf("comm must be a communicator")
}
}