()
| 157 | |
| 158 | |
| 159 | def test_binop_propagation(): |
| 160 | src = """ |
| 161 | x = c() |
| 162 | a = "test" + x |
| 163 | b = a + "test" |
| 164 | """ |
| 165 | p = "c()" |
| 166 | node = process_taint(src, p) |
| 167 | assert isinstance(node, Var) |
| 168 | assert node.var_name == "b" |
| 169 | assert node._taint_class == Taints.TAINTED |
| 170 | |
| 171 | |
| 172 | def test_function_argument_propagation(): |
nothing calls this directly
no test coverage detected