MCPcopy Index your code
hub / github.com/andialbrecht/sqlparse / test_array_index_function_result

Function test_array_index_function_result

tests/test_parse.py:273–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271
272
273def test_array_index_function_result():
274 p = sqlparse.parse('somefunc()[1]')[0].tokens
275 assert len(p) == 1
276 assert len(list(p[0].get_array_indices())) == 1
277
278
279def test_schema_qualified_array_index():

Callers

nothing calls this directly

Calls 1

get_array_indicesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…