MCPcopy Create free account
hub / github.com/apache/tvm-ffi / test_empty

Method test_empty

tests/python/test_serialization.py:335–338  ·  view source on GitHub ↗

Empty dict roundtrips correctly.

(self)

Source from the content-addressed store, hash-verified

333 """Roundtrip tests for ffi.Dict containers."""
334
335 def test_empty(self) -> None:
336 """Empty dict roundtrips correctly."""
337 d = tvm_ffi.Dict({})
338 _assert_roundtrip_eq(d)
339
340 def test_single_entry(self) -> None:
341 """Single-entry dict roundtrips correctly."""

Callers

nothing calls this directly

Calls 2

_assert_roundtrip_eqFunction · 0.85
DictMethod · 0.80

Tested by

no test coverage detected