mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-28 19:34:58 +01:00
0ab92d4861
This also fixes a deprecation warning.
17 lines
295 B
Go
17 lines
295 B
Go
package tests
|
|
|
|
import (
|
|
"reflect"
|
|
"runtime"
|
|
|
|
"github.com/zrepl/zrepl/platformtest"
|
|
)
|
|
|
|
type Case func(*platformtest.Context)
|
|
|
|
func (c Case) String() string {
|
|
return runtime.FuncForPC(reflect.ValueOf(c).Pointer()).Name()
|
|
}
|
|
|
|
//go:generate go run ./gen github.com/zrepl/zrepl/platformtest/tests
|