Want the path walks named after their entry points

This commit is contained in:
2026-09-28 00:26:33 +02:00
committed by Lillem4n
parent 8c856b6510
commit 917c93564f
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1061,14 +1061,14 @@ func TestProbeReportsTheTablesADrawPins(t *testing.T) {
t.Fatal(err)
}
head := f.categories[segs[0]].(*table)
probe := &probeWalk{}
probe := &pathProbe{drawn: map[*table]bool{}}
if _, err := probe.walk(head, segs[1:]); err != nil {
t.Fatalf("%s: %v", path, err)
}
probed, drawn := probe.pins, probe.drawn
for i := 0; i < 20; i++ {
var pins pinSet
drawPath(head, segs[1:], segs[0], &renderWalk{s: f.rand, pins: &pins})
drawPath(head, segs[1:], segs[0], &pathDraw{s: f.rand, pins: &pins})
want := map[*table]bool{}
pins.each(func(tbl *table, _ int) {
if _, selected := probed.pinned(tbl); !selected {