MCPcopy Create free account
hub / github.com/getsentry/sentry / test_codec_chaining

Function test_codec_chaining

tests/sentry/utils/test_codecs.py:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def test_codec_chaining() -> None:
23 codec = JSONCodec() | BytesCodec()
24
25 assert codec.encode([1, 2, 3]) == b"[1,2,3]"
26 assert codec.decode(b"[1,2,3]") == [1, 2, 3]

Callers

nothing calls this directly

Calls 4

JSONCodecClass · 0.90
BytesCodecClass · 0.90
encodeMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected