github.phpd.cn/hashicorp/packer@v1.3.2/builder/lxc/communicator_test.go (about)

     1  package lxc
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/hashicorp/packer/packer"
     7  )
     8  
     9  func TestCommunicator_ImplementsCommunicator(t *testing.T) {
    10  	var raw interface{}
    11  	raw = &LxcAttachCommunicator{}
    12  	if _, ok := raw.(packer.Communicator); !ok {
    13  		t.Fatalf("Communicator should be a communicator")
    14  	}
    15  }