mirror of
https://github.com/restic/restic.git
synced 2026-11-19 20:25:23 +00:00
Remove all workarounds for Go < 1.11
This commit is contained in:
1 parent
2464f7c4d1
commit
99fd80a585
7 files changed
+23
-79
No files matched your search
@@ -1,5 +1,3 @@
|
||||
// +build go1.9
|
||||
|
||||
package test
|
||||
|
||||
import "testing"
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// +build !go1.9
|
||||
|
||||
package test
|
||||
|
||||
import "testing"
|
||||
|
||||
// Helperer marks the current function as a test helper.
|
||||
type Helperer interface {
|
||||
Helper()
|
||||
}
|
||||
|
||||
type fakeHelper struct{}
|
||||
|
||||
func (fakeHelper) Helper() {}
|
||||
|
||||
// Helper returns a function that marks the current function as a helper function.
|
||||
func Helper(t testing.TB) Helperer {
|
||||
return fakeHelper{}
|
||||
}
|
||||
Reference in new issue
Block a user