erigon-pulse/spectest/handler.go
a cda14447ad
[caplin] pkg refactor (#7507)
Co-authored-by: Giulio <giulio.rebuffo@gmail.com>
2023-05-13 23:44:07 +02:00

17 lines
307 B
Go

package spectest
import (
"io/fs"
"testing"
)
type HandlerFunc func(t *testing.T, root fs.FS, c TestCase) (err error)
func (h HandlerFunc) Run(t *testing.T, root fs.FS, c TestCase) (err error) {
return h(t, root, c)
}
type Handler interface {
Run(t *testing.T, root fs.FS, c TestCase) (err error)
}