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

Function test_encode_decode_error_response

tests/test_protocol.py:102–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102def test_encode_decode_error_response() -> None:
103 resp = ErrorResponse(message="something failed")
104 data = encode_response(resp)
105 decoded = decode_response(data)
106 assert isinstance(decoded, ErrorResponse)
107 assert decoded.message == "something failed"
108
109
110def test_encode_decode_daemon_status_response() -> None:

Callers

nothing calls this directly

Calls 3

ErrorResponseClass · 0.90
encode_responseFunction · 0.90
decode_responseFunction · 0.90

Tested by

no test coverage detected