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:
parent
1514593f22
commit
d1a5ec7839
6 changed files with 8 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue