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

Function test_path_attr

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

Source from the content-addressed store, hash-verified

28
29
30def test_path_attr() -> None:
31 path = AccessPath.root().attr("foo")
32 assert isinstance(path, AccessPath)
33 steps = path.to_steps()
34 assert len(steps) == 1
35 assert steps[0].kind == AccessKind.ATTR
36 assert steps[0].key == "foo"
37 assert path.parent == AccessPath.root()
38
39
40def test_path_array_item() -> None:

Callers

nothing calls this directly

Calls 3

attrMethod · 0.80
rootMethod · 0.80
to_stepsMethod · 0.80

Tested by

no test coverage detected