Test that null communicator conforms to interface
This commit is contained in:
parent
542fbf3947
commit
21373a0568
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue