mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-08 15:21:55 +00:00
Drop main module dependency on test module
I suppose we could solve this other ways, but this utility was only used in one place right now, so it is easiest to copy it over. Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
/*
|
||||
Copyright 2020 VMware, Inc.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package library
|
||||
|
||||
import "io"
|
||||
|
||||
// ErrorWriter implements io.Writer by returning a fixed error.
|
||||
type ErrorWriter struct {
|
||||
ReturnError error
|
||||
}
|
||||
|
||||
var _ io.Writer = &ErrorWriter{}
|
||||
|
||||
func (e *ErrorWriter) Write([]byte) (int, error) { return 0, e.ReturnError }
|
||||
Reference in New Issue
Block a user