MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / test_daemon_status

Function test_daemon_status

tests/test_daemon.py:197–203  ·  view source on GitHub ↗
(daemon_sock: str)

Source from the content-addressed store, hash-verified

195
196
197def test_daemon_status(daemon_sock: str) -> None:
198 conn, _ = _connect_and_handshake(daemon_sock)
199 conn.send_bytes(encode_request(DaemonStatusRequest()))
200 resp = decode_response(conn.recv_bytes())
201 assert resp.version == __version__
202 assert resp.uptime_seconds > 0
203 conn.close()
204
205
206def test_daemon_project_status_after_index(daemon_sock: str, daemon_project: str) -> None:

Callers

nothing calls this directly

Calls 5

encode_requestFunction · 0.90
DaemonStatusRequestClass · 0.90
decode_responseFunction · 0.90
closeMethod · 0.80
_connect_and_handshakeFunction · 0.70

Tested by

no test coverage detected