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

Method test_empty

tests/python/test_serialization.py:237–240  ·  view source on GitHub ↗

Empty array roundtrips correctly.

(self)

Source from the content-addressed store, hash-verified

235 """Roundtrip tests for ffi.Array containers."""
236
237 def test_empty(self) -> None:
238 """Empty array roundtrips correctly."""
239 arr = tvm_ffi.convert([])
240 _assert_roundtrip_eq(arr)
241
242 def test_single_element(self) -> None:
243 """Single-element array roundtrips correctly."""

Callers

nothing calls this directly

Calls 2

_assert_roundtrip_eqFunction · 0.85
convertMethod · 0.45

Tested by

no test coverage detected