Want a selector on a repeating template refused as a selector, and the probe held to a descent ending on a linked table

This commit is contained in:
2026-09-28 00:35:52 +02:00
committed by Lillem4n
parent 1073232ca7
commit d95045f4ac
2 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ func TestPathCheckStopsAtAMissingSegment(t *testing.T) {
t.Fatalf("pathLeaves(a.b) = %v, want the one leaf", leaves)
}
w := &pathCheck{tail: []string{"a", "nope", "deeper"}}
_, err := w.walk(n, w.tail)
_, err := w.run(n)
if err == nil || !strings.Contains(err.Error(), `no field "nope"`) {
t.Errorf("walk(a.nope.deeper) = %v, want the missing segment named", err)
}