Files
restic/internal/restic/progress_test.go
T
2026-06-13 21:08:18 +02:00

19 lines
274 B
Go

package restic_test
import (
"testing"
"github.com/restic/restic/internal/restic"
)
func TestNoopCounter(_ *testing.T) {
c := restic.NoopCounter
c.Add(1)
c.SetMax(42)
c.Done()
v, max := c.Get()
if v != 0 || max != 0 {
panic("noop counter must not change")
}
}