mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-18 22:11:39 -04:00
* [COMPLIANCE] Add/Update Copyright Headers * make generate update * make generate --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: sanya <[email protected]> Co-authored-by: Sanya <[email protected]>
33 lines
524 B
Go
33 lines
524 B
Go
// Copyright IBM Corp. 2024, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package fix
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFix_allFixersEnabled(t *testing.T) {
|
|
f := Fixers
|
|
o := FixerOrder
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|