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.
This commit is contained in:
parent
728071e7d1
commit
6496749565
@ -16,6 +16,7 @@ package testutils
|
|||||||
|
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
|
// BadReader is an io.Reader which always errors
|
||||||
type BadReader struct {
|
type BadReader struct {
|
||||||
Error error
|
Error error
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user