Commit 7311b74
test: add pty_terminal_test with milestone supported (#152)
Decompose the monolithic Terminal struct into focused components:
- PtyStream: combined reader/writer (impl Read + Write) with vt100
parser, screen_contents(), resize(), send_ctrl_c(), write_line()
- ChildHandle: cloneable child process handle with wait() and kill()
- Terminal: thin wrapper with pub pty_stream and child_handle fields
Drop custom read_until/read_to_end methods in favor of std::io traits.
Remove 7 read_until-specific tests; adapt remaining 9 tests to use
BufReader<&mut PtyStream>::read_until for synchronization.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1fe363c commit 7311b74
23 files changed
Lines changed: 1350 additions & 442 deletions
File tree
- crates
- pty_terminal_test_client
- src
- pty_terminal_test
- src
- tests
- pty_terminal
- src
- tests
- vite_task_bin
- src
- tests/e2e_snapshots
- fixtures/interactions-no-vp
- snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
0 commit comments