Commit 253f342
test(testgen): async channel pipeline (scheduler differential)
Generate a self-contained async program: a producer sends k values, a consumer
receives exactly k (matched counts + buffered channel => no deadlock), counts
them, and returns the count, which main prints. Exercises the cooperative
scheduler, `task_group` / `async let`, `Channel`/`Sender`/`Receiver`, `await`,
`take`, and `?` end-to-end across every backend — including the compiled-Rust
lowering. Completion and the printed count are deterministic, so it is safe for
the value differential (this is the determinism guard the plan called for).
Smoke (>=95% accept, vm==jit) and full N-way incl. compiled (50 cases) green.
Note: while building this, the framework surfaced a minor lowering bug — a source
file named after a Rust keyword (e.g. `async.rss`) lowers to `async::main()`,
invalid Rust. Not triggered by the generator (it uses non-keyword names); filed
for a separate fix (sanitize keyword module names).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4194c48 commit 253f342
1 file changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
142 | 195 | | |
143 | 196 | | |
144 | 197 | | |
| |||
0 commit comments