Rename categoriesOf to segmentsOf

This commit is contained in:
2026-09-29 04:22:39 +02:00
committed by Lillem4n
parent 29f3821a21
commit f0992e7151
+2 -2
View File
@@ -1079,13 +1079,13 @@ func TestProbeReportsTheTablesADrawPins(t *testing.T) {
}
})
if !maps.Equal(drawn, want) {
t.Fatalf("%s: the probe reports %v drawn, a draw pins %v", path, categoriesOf(drawn), categoriesOf(want))
t.Fatalf("%s: the probe reports %v drawn, a draw pins %v", path, segmentsOf(drawn), segmentsOf(want))
}
}
}
}
func categoriesOf(tables map[*table]bool) []string {
func segmentsOf(tables map[*table]bool) []string {
var out []string
for tbl := range tables {
out = append(out, tbl.segment)