mirror of
https://github.com/octoleo/restic.git
synced 2024-11-16 10:05:25 +00:00
16 lines
277 B
Go
16 lines
277 B
Go
|
// +build go1.9
|
||
|
|
||
|
package test
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
// Helperer marks the current function as a test helper.
|
||
|
type Helperer interface {
|
||
|
Helper()
|
||
|
}
|
||
|
|
||
|
// Helper returns a function that marks the current function as a helper function.
|
||
|
func Helper(t testing.TB) Helperer {
|
||
|
return t
|
||
|
}
|