MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_find_prev_keyword_where

Function test_find_prev_keyword_where

tests/parseutils/test_parseutils.py:221–223  ·  view source on GitHub ↗
(sql)

Source from the content-addressed store, hash-verified

219 ],
220)
221def test_find_prev_keyword_where(sql):
222 kw, stripped = find_prev_keyword(sql)
223 assert kw.value == "where" and stripped == "select * from foo where"
224
225
226@pytest.mark.parametrize("sql", ["create table foo (bar int, baz ", "select * from foo() as bar (baz "])

Callers

nothing calls this directly

Calls 1

find_prev_keywordFunction · 0.90

Tested by

no test coverage detected