MCPcopy Index your code
hub / github.com/msgspec/msgspec / test_raw

Method test_raw

tests/unit/test_convert.py:2596–2603  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2594
2595class TestRaw:
2596 def test_raw(self):
2597 raw = msgspec.Raw(b"123")
2598
2599 class Ex(Struct):
2600 x: msgspec.Raw
2601
2602 sol = Ex(x=raw)
2603 assert convert({"x": raw}, type=Ex) == sol

Callers

nothing calls this directly

Calls 1

ExClass · 0.70

Tested by

no test coverage detected