aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/testutil
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/testutil')
-rw-r--r--pkg/testutil/testutil.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/testutil/testutil.go b/pkg/testutil/testutil.go
index 153584dd5..b2ec06afb 100644
--- a/pkg/testutil/testutil.go
+++ b/pkg/testutil/testutil.go
@@ -90,3 +90,12 @@ func randValue(t *testing.T, rnd *rand.Rand, typ reflect.Type) reflect.Value {
}
return v
}
+
+type Writer struct {
+ testing.TB
+}
+
+func (w *Writer) Write(data []byte) (int, error) {
+ w.TB.Logf("%s", data)
+ return len(data), nil
+}