diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-09 20:16:41 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-09 20:16:41 +0300 |
| commit | 8aa495df3b3da9213bdf29d7a15c1473fefcc63b (patch) | |
| tree | fff04a324527e08b75a9667dd4e81b5a07a0ea0d /internal/model/scan_test.go | |
| parent | c68965ac297f6b4f0da4ad541e921646c320c489 (diff) | |
s1 add media rescan hotkey and progress indicator
Diffstat (limited to 'internal/model/scan_test.go')
| -rw-r--r-- | internal/model/scan_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/model/scan_test.go b/internal/model/scan_test.go index acd1dd1..7d370c3 100644 --- a/internal/model/scan_test.go +++ b/internal/model/scan_test.go @@ -50,6 +50,17 @@ func TestScanProgress_SetFilesTotal(t *testing.T) { } } +func TestScanProgress_AddFilesTotal(t *testing.T) { + var p ScanProgress + p.Start(2) + p.AddFilesTotal(10) + p.AddFilesTotal(15) + cp := p.Copy() + if cp.FilesTotal != 25 { + t.Errorf("FilesTotal = %d, want 25", cp.FilesTotal) + } +} + func TestScanProgress_IncrementFile(t *testing.T) { var p ScanProgress p.Start(1) |
