From 7fdb53f5d15d525ffc92185c881b89f80619b37c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 12 May 2013 17:15:03 -0700 Subject: [PATCH] packer: Test to make sure DispatchHook implements Hook --- packer/hook_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packer/hook_test.go b/packer/hook_test.go index 1067ea79e..eacd1c90a 100644 --- a/packer/hook_test.go +++ b/packer/hook_test.go @@ -19,6 +19,15 @@ func (t *TestHook) Run(name string, data interface{}, ui Ui) { t.runUi = ui } +func TestDispatchHook_Implements(t *testing.T) { + assert := asserts.NewTestingAsserts(t, true) + + var r Hook + c := &DispatchHook{nil} + + assert.Implementor(c, &r, "should be a Hook") +} + func TestDispatchHook_Run_NoHooks(t *testing.T) { // Just make sure nothing blows up dh := &DispatchHook{make(map[string][]Hook)}