From 916b5ef753bb65138b406f666d276ec7bd8f1ae6 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Sun, 22 Mar 2026 11:10:59 -0400 Subject: [PATCH] fix: add missing playCount and lastPlayed args to mapTrackRow test calls The mapTrackRow signature was extended with playCount and lastPlayed fields in the play history feature, but the scan_test.go callers were not updated, breaking go vet and golangci-lint. --- backend/library/scan_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/library/scan_test.go b/backend/library/scan_test.go index 2a760cf..84f51a8 100644 --- a/backend/library/scan_test.go +++ b/backend/library/scan_test.go @@ -207,6 +207,8 @@ func TestMapTrackRow(t *testing.T) { 2, // channels 1411, // bitrate 35000000, // fileSize + 0, // playCount + sql.NullTime{}, // lastPlayed ) // Verify all 16 fields. @@ -287,6 +289,8 @@ func TestMapTrackRow(t *testing.T) { "/music/unknown.mp3", 0, "Test", "Artist", sql.NullInt64{}, sql.NullInt64{}, // invalid (null) "", "", 0, "", "", 0, 0, 0, 0, 0, + 0, // playCount + sql.NullTime{}, // lastPlayed ) if trackNull.TrackNumber != 0 {