MCPcopy
hub / github.com/long2ice/fastapi-cache / test_pickle_coder

Function test_pickle_coder

tests/test_codecs.py:37–41  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

35 ],
36)
37def test_pickle_coder(value: Any) -> None:
38 encoded_value = PickleCoder.encode(value)
39 assert isinstance(encoded_value, bytes)
40 decoded_value = PickleCoder.decode(encoded_value)
41 assert decoded_value == value
42
43
44@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected