From: Gabe Rosenhouse Date: Thu, 14 Jul 2016 20:59:10 +0000 (-0700) Subject: plugins: adds new no-op plugin that may be used as a test-double X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=6496749565bf8b1e251eb001c4ee667726571419;p=plugins.git 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. --- diff --git a/testutils/bad_reader.go b/testutils/bad_reader.go index ca06c5e..f9d0ade 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 }