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

Function test_decode_parse_error

tests/unit/test_yaml.py:146–148  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

144
145@pytest.mark.parametrize("msg", [b"{{", b"!!binary 123"])
146def test_decode_parse_error(msg):
147 with pytest.raises(msgspec.DecodeError):
148 msgspec.yaml.decode(msg)
149
150
151def test_decode_validation_error():

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…