Functional options WithInput tells the test to create a reader with the given input. This can be used to simulate user input when a task requires it.
(input string)
| 77 | // WithInput tells the test to create a reader with the given input. This can be |
| 78 | // used to simulate user input when a task requires it. |
| 79 | func WithInput(input string) ExecutorTestOption { |
| 80 | return &inputTestOption{input} |
| 81 | } |
| 82 | |
| 83 | type inputTestOption struct { |
| 84 | input string |
no outgoing calls
no test coverage detected
searching dependent graphs…