Move surveyRender and surveyColumns, used only by tests, into readsurvey_test.go

This commit is contained in:
2026-09-29 21:17:26 +02:00
committed by Lillem4n
parent 78b08b699f
commit b7bbf40366
2 changed files with 10 additions and 10 deletions
-10
View File
@@ -51,16 +51,6 @@ type readFold struct {
func newReadFold() *readFold { return &readFold{memo: map[node][]pathRead{}} }
func surveyRender(t *template) *readSurvey {
f := newReadFold()
return survey(f.rootReads(t), t.link.drawGroupKey)
}
func surveyColumns(t *template, columns []string) *readSurvey {
f := newReadFold()
return survey(f.columnReads(t, columns), t.link.drawGroupKey)
}
// rootReads is what rendering t as a render of its own reads, each read named by the edge of t
// that reaches it, and in "" where no template below t names a draw group.
func (f *readFold) rootReads(t *template) []pathRead {
+10
View File
@@ -168,3 +168,13 @@ func TestReadSurveyReportsAPinClashAsAnError(t *testing.T) {
t.Errorf("check = %v, want the clash below {f} named by the route the root reaches it by", err)
}
}
func surveyRender(t *template) *readSurvey {
f := newReadFold()
return survey(f.rootReads(t), t.link.drawGroupKey)
}
func surveyColumns(t *template, columns []string) *readSurvey {
f := newReadFold()
return survey(f.columnReads(t, columns), t.link.drawGroupKey)
}