mirror of
https://github.com/restic/restic.git
synced 2025-06-20 04:58:33 +00:00
14 lines
260 B
Go
14 lines
260 B
Go
![]() |
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
|
||
|
}
|