File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ type FakeUI struct {
27
27
PasswordPrompts []string
28
28
ChoicesPrompts []choicesPrompt
29
29
WarnOutputs []string
30
+ stdoutWriter io.Writer
31
+ stdErrWriter io.Writer
32
+ stdInWriter io.Reader
30
33
31
34
inputs bytes.Buffer
32
35
stdOut bytes.Buffer
@@ -225,6 +228,18 @@ func (ui *FakeUI) ErrWriter() io.Writer {
225
228
return & ui .stdErr
226
229
}
227
230
231
+ // NOTE: SetErrWriter is added here since the method is part of the UI type Interface interface
232
+ // the method is not needed for testing
233
+ func (ui * FakeUI ) SetErrWriter (buf io.Writer ) {
234
+ panic ("unimplemented" )
235
+ }
236
+
237
+ // NOTE: SetErrWriter is added here since the method is part of the UI type Interface interface
238
+ // the method is not needed for testing
239
+ func (ui * FakeUI ) SetWriter (buf io.Writer ) {
240
+ panic ("unimplemented" )
241
+ }
242
+
228
243
func (ui * FakeUI ) SetQuiet (quiet bool ) {
229
244
ui .quiet = quiet
230
245
}
You can’t perform that action at this time.
0 commit comments