packer-cn/builder/amazon/chroot/step_flock_test.go

16 lines
300 B
Go
Raw Normal View History

package chroot
2019-10-24 00:21:08 -04:00
import (
"testing"
"github.com/hashicorp/packer/packer-plugin-sdk/chroot"
2019-10-24 00:21:08 -04:00
)
func TestFlockCleanupFunc_ImplementsCleanupFunc(t *testing.T) {
var raw interface{}
raw = new(StepFlock)
2019-10-24 00:21:08 -04:00
if _, ok := raw.(chroot.Cleanup); !ok {
t.Fatalf("cleanup func should be a CleanupFunc")
}
}