Struct-filling: FakeStruct fills fake-tagged fields as a record, each field's Go type its datatype, and IsTemplate owns the path-or-template shape rule
Tests / vet + fmt + tests (pull_request) Successful in 1m0s

This commit is contained in:
2026-09-15 16:23:10 +02:00
parent d4ff3b242e
commit c0b176a839
8 changed files with 424 additions and 46 deletions
+2
View File
@@ -21,6 +21,7 @@ import (
"io/fs"
"math/rand/v2"
"os"
"reflect"
"sort"
"sync"
)
@@ -46,6 +47,7 @@ type Generator struct {
rand *session
categories map[string]node
records map[node]recordShape
structs map[reflect.Type]structResult
}
// session is one generator's mutable render state: the seeded rng plus the {seq()}