()
| 19 | |
| 20 | |
| 21 | def 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 | |
| 33 | def test_call_rename(): |
nothing calls this directly
no test coverage detected