mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-14 11:04:23 -04:00
refactor(tracker): use go v1.23 style iterators throughout
This commit is contained in:
parent
2b7ce39069
commit
97e59c5650
@ -292,14 +292,14 @@ func FuzzModel(f *testing.F) {
|
||||
index--
|
||||
return index > 0
|
||||
}, seed)
|
||||
state.model.Alerts().Iterate(func(a tracker.Alert) {
|
||||
for _, a := range model.Alerts().Iterate() {
|
||||
if a.Name == "IDCollision" {
|
||||
t.Errorf("Path: %s Model has ID collisions", totalPath)
|
||||
}
|
||||
if a.Name == "InvalidUnitParameters" {
|
||||
t.Errorf("Path: %s Model units with invalid parameters", totalPath)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
closeChan <- struct{}{}
|
||||
})
|
||||
|
Reference in New Issue
Block a user