open-vault/helper/benchhelpers/benchhelpers.go
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

23 lines
333 B
Go

// 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}
}