refactor(tracker): use go v1.23 style iterators throughout

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-10-15 00:01:02 +03:00
parent 2b7ce39069
commit 97e59c5650
7 changed files with 108 additions and 87 deletions

View File

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