MCPcopy
hub / github.com/msgspec/msgspec / test_repr_empty

Method test_repr_empty

tests/unit/test_struct.py:698–704  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

696 assert x.__rich_repr__() == []
697
698 def test_repr_empty(self):
699 class Test(Struct):
700 pass
701
702 x = Test()
703 assert repr(x) == "Test()"
704 assert x.__rich_repr__() == []
705
706 def test_repr_one_field(self):
707 class Test(Struct):

Callers

nothing calls this directly

Calls 1

TestClass · 0.70

Tested by

no test coverage detected