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

Function test_path_missing_map_item

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

Source from the content-addressed store, hash-verified

68
69
70def test_path_missing_map_item() -> None:
71 path = AccessPath.root().map_item_missing("foo")
72 assert isinstance(path, AccessPath)
73 steps = path.to_steps()
74 assert len(steps) == 1
75 assert steps[0].kind == AccessKind.MAP_ITEM_MISSING
76 assert steps[0].key == "foo"
77 assert path.parent == AccessPath.root()
78
79
80def test_path_is_prefix_of() -> None:

Callers

nothing calls this directly

Calls 3

map_item_missingMethod · 0.80
rootMethod · 0.80
to_stepsMethod · 0.80

Tested by

no test coverage detected