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

Function test_path_map_item

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

Source from the content-addressed store, hash-verified

58
59
60def test_path_map_item() -> None:
61 path = AccessPath.root().map_item("foo")
62 assert isinstance(path, AccessPath)
63 steps = path.to_steps()
64 assert len(steps) == 1
65 assert steps[0].kind == AccessKind.MAP_ITEM
66 assert steps[0].key == "foo"
67 assert path.parent == AccessPath.root()
68
69
70def test_path_missing_map_item() -> None:

Callers

nothing calls this directly

Calls 3

map_itemMethod · 0.80
rootMethod · 0.80
to_stepsMethod · 0.80

Tested by

no test coverage detected