Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/msgspec/msgspec
/ test_asdict
Method
test_asdict
tests/unit/test_struct.py:2398–2400 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2396
2397
class
TestAsDictAndAsTuple:
2398
def
test_asdict(self):
2399
x = Point(1, 2)
2400
assert msgspec.structs.asdict(x) == {
"x"
: 1,
"y"
: 2}
2401
2402
def
test_astuple(self):
2403
x = Point(1, 2)
Callers
nothing calls this directly
Calls
1
Point
Class · 0.70
Tested by
no test coverage detected