From 6496749565bf8b1e251eb001c4ee667726571419 Mon Sep 17 00:00:00 2001 From: Gabe Rosenhouse Date: Thu, 14 Jul 2016 13:59:10 -0700 Subject: [PATCH] plugins: adds new no-op plugin that may be used as a test-double Plugin can be configured to record all inputs and to respond with arbitrary stdout or error message. Will support upcoming integration testing. --- testutils/bad_reader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/testutils/bad_reader.go b/testutils/bad_reader.go index ca06c5e9..f9d0aded 100644 --- a/testutils/bad_reader.go +++ b/testutils/bad_reader.go @@ -16,6 +16,7 @@ package testutils import "errors" +// BadReader is an io.Reader which always errors type BadReader struct { Error error }