Test that Fixers and FixerOrder are equal length

Signed-off-by: Brendan Devenney <brendan.devenney@form3.tech>
This commit is contained in:
Brendan Devenney 2019-07-24 16:46:28 +01:00
parent 556492fb0d
commit 9f0bc29db5
No known key found for this signature in database
GPG Key ID: 71615073631A01E5
1 changed files with 10 additions and 0 deletions

View File

@ -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))
}
}