MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test_sockets_echo

Method test_sockets_echo

test/test_sockets.py:236–245  ·  view source on GitHub ↗
(self, harness_class, port, args)

Source from the content-addressed store, hash-verified

234 'accept_addr': [CompiledServerHarness, 49163, ['-DTEST_DGRAM=0', '-DTEST_ACCEPT_ADDR=1']],
235 })
236 def test_sockets_echo(self, harness_class, port, args):
237 if harness_class == WebsockifyServerHarness and common.EMTEST_LACKS_NATIVE_CLANG:
238 self.skipTest('requires native clang')
239 if harness_class == WebsockifyServerHarness and EMTEST_SKIP_PYTHON_DEV_PACKAGES:
240 self.skipTest('requires python websockify and EMTEST_SKIP_PYTHON_DEV_PACKAGES=1')
241 if harness_class == CompiledServerHarness and EMTEST_SKIP_NODE_DEV_PACKAGES:
242 self.skipTest('requires node ws and EMTEST_SKIP_NODE_DEV_PACKAGES=1')
243
244 with harness_class(test_file('sockets/test_sockets_echo_server.c'), args, port) as harness:
245 self.btest_exit('sockets/test_sockets_echo_client.c', cflags=[f'-DSOCKK={harness.listen_port}', *args])
246
247 @requires_dev_dependency('ws')
248 def test_sockets_echo_pthreads(self):

Callers

nothing calls this directly

Calls 2

test_fileFunction · 0.85
btest_exitMethod · 0.80

Tested by

no test coverage detected