()
| 3 | |
| 4 | |
| 5 | def test(): |
| 6 | s = socketio.Server(async_handlers=False) |
| 7 | start = time.time() |
| 8 | count = 0 |
| 9 | s._handle_eio_connect('123', 'environ') |
| 10 | s._handle_eio_message('123', '0') |
| 11 | while True: |
| 12 | s._handle_eio_message('123', '2["test","hello"]') |
| 13 | count += 1 |
| 14 | if time.time() - start >= 5: |
| 15 | break |
| 16 | return count |
| 17 | |
| 18 | |
| 19 | if __name__ == '__main__': |
no test coverage detected
searching dependent graphs…