Test that shipped categories load when first reached, from a current index, and render as the whole load

This commit is contained in:
2026-10-03 17:07:36 +02:00
committed by Lillem4n
parent cff6533e7b
commit 75597664e0
3 changed files with 211 additions and 9 deletions
+1 -4
View File
@@ -57,10 +57,7 @@ func fenceRoots(t *testing.T, f *Generator) []fenceRoot {
func TestPairsFindWhatAWholeReplayFinds(t *testing.T) {
corpus := fenceCorpus(t)
roots := fenceRoots(t, corpus)
shipped, err := New()
if err != nil {
t.Fatalf("New() = %v", err)
}
shipped := newShippedWhole(t)
_ = walkNodes(shipped.root.children, func(path string, n node) error {
if tm, ok := n.(*template); ok {
roots = append(roots, fenceRoot{path, tm})