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

16 lines
249 B
Go
Raw Normal View History

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