From a14ade927731cf606cca195a958fb50c7cd783c1 Mon Sep 17 00:00:00 2001 From: rouggy Date: Fri, 24 Jul 2026 11:47:15 +0200 Subject: [PATCH] test: fix adif roundtrip_test writeRecord calls for new allow-set param MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit writeRecord gained a fourth `allow map[string]bool` argument in the export field-picker change; the round-trip test still called it with three. Pass nil (no field filtering — the historical behaviour). --- internal/adif/roundtrip_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/adif/roundtrip_test.go b/internal/adif/roundtrip_test.go index e525f28..74142f1 100644 --- a/internal/adif/roundtrip_test.go +++ b/internal/adif/roundtrip_test.go @@ -34,7 +34,7 @@ func TestPromotedFieldsRoundTrip(t *testing.T) { var buf bytes.Buffer bw := bufio.NewWriter(&buf) bw.WriteString("\n") - writeRecord(bw, in, true) + writeRecord(bw, in, true, nil) bw.Flush() var rec Record @@ -115,7 +115,7 @@ func TestStandardExportDropsNonStandard(t *testing.T) { func renderRecord(q qso.QSO, includeApp bool) string { var buf bytes.Buffer bw := bufio.NewWriter(&buf) - writeRecord(bw, q, includeApp) + writeRecord(bw, q, includeApp, nil) bw.Flush() return buf.String() }