mirror of
https://github.com/restic/restic.git
synced 2026-07-05 23:05:08 +00:00
test: use generics in Equal function signature
This simplifies comparing a typed value against nil. Previously it was necessary to case nil into the proper type.
This commit is contained in:
@@ -128,7 +128,7 @@ func TestRawInputOutput(t *testing.T) {
|
||||
defer cancel()
|
||||
rtest.Equals(t, input, term.InputRaw())
|
||||
rtest.Equals(t, false, term.InputIsTerminal())
|
||||
rtest.Equals(t, &output, term.OutputRaw())
|
||||
rtest.Equals(t, io.Writer(&output), term.OutputRaw())
|
||||
rtest.Equals(t, false, term.OutputIsTerminal())
|
||||
rtest.Equals(t, false, term.CanUpdateStatus())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user