MCPcopy
hub / github.com/dbcli/pgcli / test_2_statements_1st_current

Function test_2_statements_1st_current

tests/test_sqlcompletion.py:629–634  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

627
628
629def test_2_statements_1st_current():
630 suggestions = suggest_type("select * from ; select * from b", "select * from ")
631 assert set(suggestions) == {FromClauseItem(schema=None), Schema()}
632
633 suggestions = suggest_type("select from a; select * from b", "select ")
634 assert set(suggestions) == cols_etc("a", last_keyword="SELECT")
635
636
637def test_3_statements_2nd_current():

Callers

nothing calls this directly

Calls 2

suggest_typeFunction · 0.90
cols_etcFunction · 0.85

Tested by

no test coverage detected