mirror of
https://github.com/restic/restic.git
synced 2025-10-10 09:53:43 +00:00
Rename unused testing parameter to _
The parameter is an additional marker that the test helper must only be used for tests.
This commit is contained in:
@@ -59,7 +59,7 @@ func TestCounter(t *testing.T) {
|
||||
t.Log("number of calls:", ncalls)
|
||||
}
|
||||
|
||||
func TestCounterNil(t *testing.T) {
|
||||
func TestCounterNil(_ *testing.T) {
|
||||
// Shouldn't panic.
|
||||
var c *progress.Counter
|
||||
c.Add(1)
|
||||
|
@@ -26,7 +26,8 @@ func TestUpdater(t *testing.T) {
|
||||
test.Assert(t, ncalls > 0, "no progress was reported")
|
||||
}
|
||||
|
||||
func TestUpdaterStopTwice(t *testing.T) {
|
||||
func TestUpdaterStopTwice(_ *testing.T) {
|
||||
// must not panic
|
||||
c := progress.NewUpdater(0, func(runtime time.Duration, final bool) {})
|
||||
c.Done()
|
||||
c.Done()
|
||||
|
Reference in New Issue
Block a user