ui/progress: unexport NoopPrinter and add New* function

This commit is contained in:
Michael Eischer
2026-06-05 14:48:44 +02:00
parent e8ed2434cd
commit 0bbfb072af
13 changed files with 41 additions and 35 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import (
type mockPrinter struct {
sync.Mutex
progress.NoopPrinter
progress.Printer
dirUnchanged, fileNew bool
id restic.ID
}
@@ -48,7 +48,7 @@ func (p *mockPrinter) Reset() {}
func TestProgress(t *testing.T) {
t.Parallel()
prnt := &mockPrinter{}
prnt := &mockPrinter{Printer: progress.NewNoopPrinter()}
prog := NewProgress(prnt, time.Millisecond)
prog.StartFile("foo")