refact(all): Use testing.TB for test helpers
Our test helper packages were not possible to use with benchmarks. This refactor switches to testing.TB to allow both tests and benchmarks to use the helpers.
This commit is contained in:
1 parent
a7a2c82931
commit
7f9b294a7e
29 files changed
+201
-186
No files matched your search
@@ -41,7 +41,7 @@ func (c *plugin) SetTableName(n string) {
|
||||
c.tableName = n
|
||||
}
|
||||
|
||||
func testPlugin(t *testing.T, conn *db.DB, name string) *plugin {
|
||||
func testPlugin(t testing.TB, conn *db.DB, name string) *plugin {
|
||||
t.Helper()
|
||||
p := newPlugin(name)
|
||||
id, err := db.NewPublicId("plg")
|
||||
|
||||
Reference in new issue
Block a user