test: fix adif roundtrip_test writeRecord calls for new allow-set param
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).
This commit is contained in:
@@ -34,7 +34,7 @@ func TestPromotedFieldsRoundTrip(t *testing.T) {
|
|||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
bw := bufio.NewWriter(&buf)
|
bw := bufio.NewWriter(&buf)
|
||||||
bw.WriteString("<EOH>\n")
|
bw.WriteString("<EOH>\n")
|
||||||
writeRecord(bw, in, true)
|
writeRecord(bw, in, true, nil)
|
||||||
bw.Flush()
|
bw.Flush()
|
||||||
|
|
||||||
var rec Record
|
var rec Record
|
||||||
@@ -115,7 +115,7 @@ func TestStandardExportDropsNonStandard(t *testing.T) {
|
|||||||
func renderRecord(q qso.QSO, includeApp bool) string {
|
func renderRecord(q qso.QSO, includeApp bool) string {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
bw := bufio.NewWriter(&buf)
|
bw := bufio.NewWriter(&buf)
|
||||||
writeRecord(bw, q, includeApp)
|
writeRecord(bw, q, includeApp, nil)
|
||||||
bw.Flush()
|
bw.Flush()
|
||||||
return buf.String()
|
return buf.String()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user