MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / test

Function test

tests/performance/server_send.py:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test():
14 s = Server()
15 start = time.time()
16 count = 0
17 s._handle_eio_connect('123', 'environ')
18 s._handle_eio_message('123', '0')
19 while True:
20 s.emit('test', 'hello')
21 count += 1
22 if time.time() - start >= 5:
23 break
24 return count
25
26
27if __name__ == '__main__':

Callers 1

server_send.pyFile · 0.70

Calls 4

_handle_eio_connectMethod · 0.95
_handle_eio_messageMethod · 0.95
emitMethod · 0.95
ServerClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…