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

Function test_encode_enc_hook

tests/unit/test_yaml.py:123–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122
123def test_encode_enc_hook():
124 msg = msgspec.yaml.encode(Decimal(1.5), enc_hook=str)
125 assert msgspec.yaml.decode(msg) == "1.5"
126
127
128@pytest.mark.parametrize("order", [None, "deterministic"])

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…