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

Function test_select_keyword_completion

tests/test_naive_completion.py:28–32  ·  view source on GitHub ↗
(completer, complete_event)

Source from the content-addressed store, hash-verified

26
27
28def test_select_keyword_completion(completer, complete_event):
29 text = "SEL"
30 position = len("SEL")
31 result = completions_to_set(completer.get_completions(Document(text=text, cursor_position=position), complete_event))
32 assert result == completions_to_set([Completion(text="SELECT", start_position=-3)])
33
34
35def test_function_name_completion(completer, complete_event):

Callers

nothing calls this directly

Calls 2

completions_to_setFunction · 0.90
get_completionsMethod · 0.45

Tested by

no test coverage detected