| 93 | } |
| 94 | |
| 95 | timestamp process(timestamp t = timestamp()) { |
| 96 | check_idle(); |
| 97 | if (!dispatch()) |
| 98 | throw test::error("unexpected close: "+connection().error().what()); |
| 99 | timestamp next_tick; |
| 100 | if (t!=timestamp()) next_tick = tick(t); |
| 101 | do_read(); |
| 102 | do_write(); |
| 103 | check_idle(); |
| 104 | dispatch(); |
| 105 | return next_tick; |
| 106 | } |
| 107 | }; |
| 108 | |
| 109 | /// A pair of drivers that talk to each other in-memory, simulating a connection. |
nothing calls this directly
no test coverage detected