MCPcopy Create free account
hub / github.com/dbcli/mycli / test_find_fuzzy_match

Function test_find_fuzzy_match

test/pytests/test_sqlcompleter.py:105–113  ·  view source on GitHub ↗
(
    item: str,
    pattern: re.Pattern[str],
    under_words_text: list[str],
    case_words_text: list[str],
    expected: int | None,
)

Source from the content-addressed store, hash-verified

103 ],
104)
105def test_find_fuzzy_match(
106 item: str,
107 pattern: re.Pattern[str],
108 under_words_text: list[str],
109 case_words_text: list[str],
110 expected: int | None,
111) -> None:
112 completer = SQLCompleter()
113 assert completer.find_fuzzy_match(item, pattern, under_words_text, case_words_text) == expected
114
115
116def test_find_fuzzy_matches_collects_item_level_matches(monkeypatch) -> None:

Callers

nothing calls this directly

Calls 2

find_fuzzy_matchMethod · 0.95
SQLCompleterClass · 0.90

Tested by

no test coverage detected