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

Method test_defstruct_empty

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

Source from the content-addressed store, hash-verified

2122 assert Point.__module__ == "tests.unit.test_struct"
2123
2124 def test_defstruct_empty(self):
2125 Empty = defstruct("Empty", [])
2126 assert as_tuple(Empty()) == ()
2127
2128 def test_defstruct_fields(self):
2129 Test = defstruct("Point", ["x", ("y", int), ("z", int, 0)])

Callers

nothing calls this directly

Calls 2

as_tupleFunction · 0.85
EmptyClass · 0.70

Tested by

no test coverage detected