()
| 170 | |
| 171 | |
| 172 | def 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 |
nothing calls this directly
no test coverage detected