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

Function test_encode_decode_doctor_request

tests/test_protocol.py:136–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135
136def test_encode_decode_doctor_request() -> None:
137 req = DoctorRequest(project_root="/tmp/proj")
138 data = encode_request(req)
139 decoded = decode_request(data)
140 assert isinstance(decoded, DoctorRequest)
141 assert decoded.project_root == "/tmp/proj"
142
143
144def test_encode_decode_doctor_request_no_project() -> None:

Callers

nothing calls this directly

Calls 3

DoctorRequestClass · 0.90
encode_requestFunction · 0.90
decode_requestFunction · 0.90

Tested by

no test coverage detected