Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
def
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
JSONCodec
Class · 0.90
BytesCodec
Class · 0.90
encode
Method · 0.45
decode
Method · 0.45
Tested by
no test coverage detected