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

Method test_empty

tests/python/test_serialization.py:287–290  ·  view source on GitHub ↗

Empty map roundtrips correctly.

(self)

Source from the content-addressed store, hash-verified

285 """Roundtrip tests for ffi.Map containers."""
286
287 def test_empty(self) -> None:
288 """Empty map roundtrips correctly."""
289 m = tvm_ffi.convert({})
290 _assert_roundtrip_eq(m)
291
292 def test_single_entry(self) -> None:
293 """Single-entry map roundtrips correctly."""

Callers

nothing calls this directly

Calls 2

_assert_roundtrip_eqFunction · 0.85
convertMethod · 0.45

Tested by

no test coverage detected