git://git.halfball.org
/
plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
728071e
)
plugins: adds new no-op plugin that may be used as a test-double
author
Gabe Rosenhouse
<rosenhouse@gmail.com>
Thu, 14 Jul 2016 20:59:10 +0000
(13:59 -0700)
committer
Gabe 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
patch
|
blob
|
history
diff --git
a/testutils/bad_reader.go
b/testutils/bad_reader.go
index
ca06c5e
..
f9d0ade
100644
(file)
--- 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
}