From 9f0bc29db5fab772849b75ebd293c1e049fb37b8 Mon Sep 17 00:00:00 2001 From: Brendan Devenney Date: Wed, 24 Jul 2019 16:46:28 +0100 Subject: [PATCH] Test that Fixers and FixerOrder are equal length Signed-off-by: Brendan Devenney --- command/fix_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/command/fix_test.go b/command/fix_test.go index 966367c71..a49d5cd2f 100644 --- a/command/fix_test.go +++ b/command/fix_test.go @@ -1,6 +1,7 @@ package command import ( + "github.com/hashicorp/packer/fix" "path/filepath" "strings" "testing" @@ -61,3 +62,12 @@ func TestFix_invalidTemplateDisableValidation(t *testing.T) { fatalCommand(t, c.Meta) } } + +func TestFix_allFixersEnabled(t *testing.T) { + f := fix.Fixers + o := fix.FixerOrder + + if len(f) != len(o) { + t.Fatalf("Fixers length (%d) does not match FixerOrder length (%d)", len(f), len(o)) + } +} \ No newline at end of file