()
| 264 | |
| 265 | |
| 266 | def test_2d_array_index(): |
| 267 | p = sqlparse.parse('col[x][(y+1)*2]')[0].tokens |
| 268 | assert len(p) == 1 |
| 269 | assert p[0].get_name() == 'col' |
| 270 | assert len(list(p[0].get_array_indices())) == 2 # 2-dimensional index |
| 271 | |
| 272 | |
| 273 | def test_array_index_function_result(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…