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

Function test_path_array_item

tests/python/test_access_path.py:40–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def test_path_array_item() -> None:
41 path = AccessPath.root().array_item(2)
42 assert isinstance(path, AccessPath)
43 steps = path.to_steps()
44 assert len(steps) == 1
45 assert steps[0].kind == AccessKind.ARRAY_ITEM
46 assert steps[0].key == 2
47 assert path.parent == AccessPath.root()
48
49
50def test_path_missing_array_element() -> None:

Callers

nothing calls this directly

Calls 3

array_itemMethod · 0.80
rootMethod · 0.80
to_stepsMethod · 0.80

Tested by

no test coverage detected