Add test to ensure all fixers are enabled
Signed-off-by: Brendan Devenney <brendan.devenney@form3.tech>
This commit is contained in:
parent
9f0bc29db5
commit
91b7d8c572
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue