MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / test_var_propagation_call_argument

Function test_var_propagation_call_argument

tests/test_ast_rewrite.py:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def test_var_propagation_call_argument():
22 # Should be rewritten to x(10)
23 src = """\
24 c = 10
25 x(c)
26 """
27 tree = process_source_code(src)
28 assert isinstance(tree, Call)
29 assert len(tree.args) == 1
30 assert isinstance(tree.args[0], Number), tree.args[0]
31
32
33def test_call_rename():

Callers

nothing calls this directly

Calls 1

process_source_codeFunction · 0.85

Tested by

no test coverage detected