Test that null communicator conforms to interface

This commit is contained in:
Evan Powell 2016-06-30 16:17:22 -05:00
parent 542fbf3947
commit 21373a0568
1 changed files with 16 additions and 0 deletions

View File

@ -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")
}
}