Remove ineffectual assignments

This commit is contained in:
nxshock 2024-02-09 09:50:02 +05:00
parent 143ba6aae2
commit 3e96fdbb35
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func TestCsvReaderBasic(t *testing.T) {
t2 := time.Date(2023, 03, 20, 0, 0, 0, 0, time.Local) t2 := time.Date(2023, 03, 20, 0, 0, 0, 0, time.Local)
assert.Equal(t, []any{"307814009186", t1, t2, 499.00, 488.52, "522598******7141", "REZE64", "Покупка", "35068281112", "307817403283"}, row) assert.Equal(t, []any{"307814009186", t1, t2, 499.00, 488.52, "522598******7141", "REZE64", "Покупка", "35068281112", "307817403283"}, row)
row, err = csvReader.GetRow(false) _, err = csvReader.GetRow(false)
assert.Equal(t, err, io.EOF) assert.Equal(t, err, io.EOF)
err = csvReader.Close() err = csvReader.Close()

View File

@ -30,7 +30,7 @@ func TestDbfReaderBasic(t *testing.T) {
t2 := time.Date(2023, 02, 21, 0, 0, 0, 0, time.Local) t2 := time.Date(2023, 02, 21, 0, 0, 0, 0, time.Local)
assert.Equal(t, []any{"719089383780", "44", "8644", "570000009312", "STOLOVAYA TSPP", "844417", t1, t2, 1757.08, 1713.15, "536829XXXXXX9388", "UM1TS8", "D"}, row) assert.Equal(t, []any{"719089383780", "44", "8644", "570000009312", "STOLOVAYA TSPP", "844417", t1, t2, 1757.08, 1713.15, "536829XXXXXX9388", "UM1TS8", "D"}, row)
row, err = dbfReader.GetRow(false) _, err = dbfReader.GetRow(false)
assert.Equal(t, err, io.EOF) assert.Equal(t, err, io.EOF)
err = dbfReader.Close() err = dbfReader.Close()