()
| 162 | |
| 163 | |
| 164 | def test_push(): |
| 165 | items = [1, 2, 3] |
| 166 | result = [None] |
| 167 | pm.eval("(result, arr) => {result[0] = arr.push(4)}")(result, items) |
| 168 | assert items == [1, 2, 3, 4] |
| 169 | assert result[0] == 4 |
| 170 | |
| 171 | |
| 172 | def test_push_no_arg(): |
nothing calls this directly
no outgoing calls
no test coverage detected