deb.open-vault/helper/benchhelpers/benchhelpers.go

23 lines
333 B
Go
Raw Permalink Normal View History

2024-04-20 12:23:50 +00:00
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
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}
}