20 lines
263 B
Go
20 lines
263 B
Go
|
package benchhelpers
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
testinginterface "github.com/mitchellh/go-testing-interface"
|
||
|
)
|
||
|
|
||
|
type tbWrapper struct {
|
||
|
testing.TB
|
||
|
}
|
||
|
|
||
|
func (b tbWrapper) Parallel() {
|
||
|
// no-op
|
||
|
}
|
||
|
|
||
|
func TBtoT(tb testing.TB) testinginterface.T {
|
||
|
return tbWrapper{tb}
|
||
|
}
|