github.com/mmcquillan/packer@v1.1.1-0.20171009221028-c85cf0483a5d/builder/amazon/chroot/step_flock_test.go (about)

     1  package chroot
     2  
     3  import "testing"
     4  
     5  func TestFlockCleanupFunc_ImplementsCleanupFunc(t *testing.T) {
     6  	var raw interface{}
     7  	raw = new(StepFlock)
     8  	if _, ok := raw.(Cleanup); !ok {
     9  		t.Fatalf("cleanup func should be a CleanupFunc")
    10  	}
    11  }