(p []byte)
| 541 | } |
| 542 | |
| 543 | func (mw *mockWriter) Write(p []byte) (int, error) { |
| 544 | if mw.err != nil { |
| 545 | return 0, mw.err |
| 546 | } |
| 547 | return len(p), nil |
| 548 | } |
| 549 | |
| 550 | func TestCompletionShellWriteError(t *testing.T) { |
| 551 | shellName := "mock-shell" |
no outgoing calls
no test coverage detected