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
@@ -12,7 +12,7 @@ import (
|
||||
// NewEncryptFilter is a copy of event.NewEncryptFilter since importing it would
|
||||
// case circular deps. The primary reason for this test func is to make sure
|
||||
// the proper IgnoreTypes are included for testing.
|
||||
func NewEncryptFilter(t *testing.T, w wrapping.Wrapper) *encrypt.Filter {
|
||||
func NewEncryptFilter(t testing.TB, w wrapping.Wrapper) *encrypt.Filter {
|
||||
t.Helper()
|
||||
return &encrypt.Filter{
|
||||
Wrapper: w,
|
||||
|
||||
Reference in new issue
Block a user