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

Function test_function_argument_propagation

tests/test_taint.py:172–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170
171
172def test_function_argument_propagation():
173 src = """
174 def x(arg):
175 copy = arg
176 return copy
177
178 y = c()
179 result = x(y)
180 """
181 p = "c()"
182 node = process_taint(src, p)
183 assert isinstance(node, Var)
184 assert node.var_name == "result"
185 assert node._taint_class == Taints.TAINTED

Callers

nothing calls this directly

Calls 1

process_taintFunction · 0.85

Tested by

no test coverage detected