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

Function test_encode_decode_handshake_request

tests/test_protocol.py:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_encode_decode_handshake_request() -> None:
40 req = HandshakeRequest(version="1.0.0")
41 data = encode_request(req)
42 decoded = decode_request(data)
43 assert isinstance(decoded, HandshakeRequest)
44 assert decoded.version == "1.0.0"
45
46
47def test_encode_decode_search_request_with_defaults() -> None:

Callers

nothing calls this directly

Calls 3

HandshakeRequestClass · 0.90
encode_requestFunction · 0.90
decode_requestFunction · 0.90

Tested by

no test coverage detected