File tree 2 files changed +0
-34
lines changed
2 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -145,15 +145,6 @@ func NewConsole(opts ...ConsoleOpt) (*Console, error) {
145
145
closers : closers ,
146
146
}
147
147
148
- /*for _, stdin := range options.Stdins {
149
- go func(stdin io.Reader) {
150
- _, err := io.Copy(c, stdin)
151
- if err != nil {
152
- c.Logf("failed to copy stdin: %s", err)
153
- }
154
- }(stdin)
155
- }*/
156
-
157
148
return c , nil
158
149
}
159
150
@@ -167,23 +158,6 @@ func (c *Console) OutTty() *os.File {
167
158
return c .pty .OutPipe ()
168
159
}
169
160
170
- // Read reads bytes b from Console's tty.
171
- /*func (c *Console) Read(b []byte) (int, error) {
172
- return c.ptm.Read(b)
173
- }*/
174
-
175
- // Write writes bytes b to Console's tty.
176
- /*func (c *Console) Write(b []byte) (int, error) {
177
- c.Logf("console write: %q", b)
178
- return c.ptm.Write(b)
179
- }*/
180
-
181
- // Fd returns Console's file descripting referencing the master part of its
182
- // pty.
183
- /*func (c *Console) Fd() uintptr {
184
- return c.ptm.Fd()
185
- }*/
186
-
187
161
// Close closes Console's tty. Calling Close will unblock Expect and ExpectEOF.
188
162
func (c * Console ) Close () error {
189
163
for _ , fd := range c .closers {
Original file line number Diff line number Diff line change @@ -27,14 +27,6 @@ import (
27
27
// ExpectOpt allows settings Expect options.
28
28
type ExpectOpt func (* ExpectOpts ) error
29
29
30
- // WithTimeout sets a read timeout for an Expect statement.
31
- func WithTimeout (timeout time.Duration ) ExpectOpt {
32
- return func (opts * ExpectOpts ) error {
33
- opts .ReadTimeout = & timeout
34
- return nil
35
- }
36
- }
37
-
38
30
// ConsoleCallback is a callback function to execute if a match is found for
39
31
// the chained matcher.
40
32
type ConsoleCallback func (buf * bytes.Buffer ) error
You can’t perform that action at this time.
0 commit comments