MCPcopy Index your code
hub / github.com/RustPython/RustPython / _have_socket_vsock

Function _have_socket_vsock

Lib/test/test_socket.py:165–168  ·  view source on GitHub ↗

Check whether AF_VSOCK sockets are supported on this host.

()

Source from the content-addressed store, hash-verified

163 return True
164
165def _have_socket_vsock():
166 """Check whether AF_VSOCK sockets are supported on this host."""
167 cid = get_cid()
168 return (cid is not None)
169
170
171def _have_socket_bluetooth():

Callers 1

test_socket.pyFile · 0.85

Calls 1

get_cidFunction · 0.85

Tested by

no test coverage detected