From b7bbf40366a579b7960e7aa1a8a42110640f310b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 21:17:26 +0200 Subject: [PATCH] Move surveyRender and surveyColumns, used only by tests, into readsurvey_test.go --- readsurvey.go | 10 ---------- readsurvey_test.go | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/readsurvey.go b/readsurvey.go index fd7e26d..ebf3736 100644 --- a/readsurvey.go +++ b/readsurvey.go @@ -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 { diff --git a/readsurvey_test.go b/readsurvey_test.go index 8ab26a3..184981e 100644 --- a/readsurvey_test.go +++ b/readsurvey_test.go @@ -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) +}