Add test to ensure all fixers are enabled

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

View File

@ -70,4 +70,19 @@ func TestFix_allFixersEnabled(t *testing.T) {
if len(f) != len(o) {
t.Fatalf("Fixers length (%d) does not match FixerOrder length (%d)", len(f), len(o))
}
for fixer, _ := range(f) {
found := false
for _, orderedFixer := range(o) {
if orderedFixer == fixer {
found = true
break
}
}
if !found {
t.Fatalf("Did not find Fixer %s in FixerOrder", fixer)
}
}
}