plugins: adds new no-op plugin that may be used as a test-double
authorGabe Rosenhouse <rosenhouse@gmail.com>
Thu, 14 Jul 2016 20:59:10 +0000 (13:59 -0700)
committerGabe Rosenhouse <rosenhouse@gmail.com>
Fri, 15 Jul 2016 19:48:02 +0000 (12:48 -0700)
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

index ca06c5e..f9d0ade 100644 (file)
@@ -16,6 +16,7 @@ package testutils
 
 import "errors"
 
+// BadReader is an io.Reader which always errors
 type BadReader struct {
        Error error
 }