mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
17 lines
307 B
Go
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)
|
||
|
}
|