From 21373a0568c43d6cdf2c160f8236195b5a2cf27c Mon Sep 17 00:00:00 2001 From: Evan Powell Date: Thu, 30 Jun 2016 16:17:22 -0500 Subject: [PATCH] Test that null communicator conforms to interface --- communicator/none/communicator_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 communicator/none/communicator_test.go diff --git a/communicator/none/communicator_test.go b/communicator/none/communicator_test.go new file mode 100644 index 000000000..fd5c6b13c --- /dev/null +++ b/communicator/none/communicator_test.go @@ -0,0 +1,16 @@ +package none + +import ( + "testing" + + "github.com/mitchellh/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") + } +} +