MCPcopy
hub / github.com/andialbrecht/sqlparse / test_2d_array_index

Function test_2d_array_index

tests/test_parse.py:266–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264
265
266def 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
273def test_array_index_function_result():

Callers

nothing calls this directly

Calls 2

get_nameMethod · 0.80
get_array_indicesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…