mirror of
https://github.com/restic/restic.git
synced 2025-08-21 05:17:35 +00:00
restore: test progress reporting for partially up to date files
This commit is contained in:
@@ -65,18 +65,6 @@ func getBlockCount(t *testing.T, filename string) int64 {
|
||||
return st.Blocks
|
||||
}
|
||||
|
||||
type printerMock struct {
|
||||
s restoreui.State
|
||||
}
|
||||
|
||||
func (p *printerMock) Update(_ restoreui.State, _ time.Duration) {
|
||||
}
|
||||
func (p *printerMock) CompleteItem(action restoreui.ItemAction, item string, size uint64) {
|
||||
}
|
||||
func (p *printerMock) Finish(s restoreui.State, _ time.Duration) {
|
||||
p.s = s
|
||||
}
|
||||
|
||||
func TestRestorerProgressBar(t *testing.T) {
|
||||
testRestorerProgressBar(t, false)
|
||||
}
|
||||
|
Reference in New Issue
Block a user