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

Function test_path_missing_array_element

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

Source from the content-addressed store, hash-verified

48
49
50def test_path_missing_array_element() -> None:
51 path = AccessPath.root().array_item_missing(2)
52 assert isinstance(path, AccessPath)
53 steps = path.to_steps()
54 assert len(steps) == 1
55 assert steps[0].kind == AccessKind.ARRAY_ITEM_MISSING
56 assert steps[0].key == 2
57 assert path.parent == AccessPath.root()
58
59
60def test_path_map_item() -> None:

Callers

nothing calls this directly

Calls 3

array_item_missingMethod · 0.80
rootMethod · 0.80
to_stepsMethod · 0.80

Tested by

no test coverage detected