| 348 | } |
| 349 | |
| 350 | int |
| 351 | NetVCTest::main_handler(int event, void *data) |
| 352 | { |
| 353 | if (event == NET_EVENT_ACCEPT) { |
| 354 | test_vc = static_cast<NetVConnection *>(data); |
| 355 | start_test(); |
| 356 | return 0; |
| 357 | } |
| 358 | |
| 359 | if (data == read_vio) { |
| 360 | read_handler(event); |
| 361 | } else if (data == write_vio) { |
| 362 | write_handler(event); |
| 363 | } else { |
| 364 | record_error("main: unknown event"); |
| 365 | } |
| 366 | |
| 367 | return 0; |
| 368 | } |
| 369 | |
| 370 | NetTestDriver::NetTestDriver() : Continuation(nullptr) {} |
| 371 |
nothing calls this directly
no test coverage detected