diff options
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) |
