Say what List returns: fields, columns, linked tables, direct descents only

This commit is contained in:
2026-09-29 01:55:00 +02:00
committed by Lillem4n
parent a9f35a1ab3
commit 7b01a7fd68
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -115,9 +115,9 @@ func New(opts ...Option) (*Generator, error) {
return &Generator{rand: rng, categories: cats}, nil
}
// List returns the sorted dotted paths Fake can render: every category, the dotted
// fields within a template. A choice consumes no segment, so a path continues
// through one only where every variant carries it, which is the rule Fake applies too.
// List returns the sorted dotted paths Fake renders: each category and every field,
// column and linked table below it, a direct descent at a time. A choice consumes no
// segment, so a path continues through one only where every variant carries it.
func (f *Generator) List() []string {
var out []string
for _, name := range sortedNames(f.categories) {